/* Google-inspired styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-container {
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.logo {
    font-family: 'League Spartan', sans-serif;
    font-size: 2em;
    color: #4285f4;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.search-input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    margin-bottom: 20px;
    outline: none;
}

.search-input:focus {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: rgba(223,225,229,0);
}

.button {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
}

.button:hover {
    background-color: #357abd;
}

.conversation-container {
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    line-height: 1.6;
    font-size: 16px;
    order: -1;
}

.conversation-container h1 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1.5em;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #333;
    font-weight: 700;
}

.conversation-container h2 {
    font-size: 1.2em;
    margin: 15px 0;
    color: #444;
}

.conversation-container .content {
    margin-bottom: 30px;
}

.conversation-container p {
    margin: 0.5em 0;
}

.conversation-container p + p {
    margin-top: 1em;
}

/* Responsive text size for mobile */
@media (max-width: 768px) {
    .conversation-container {
        font-size: 16px;
        padding: 15px;
    }

    .conversation-container h1 {
        font-size: 1.3em;
    }

    .logo {
        font-size: 1.75em;
    }
}

.footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    margin-top: auto;
}

.payment-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
}

.loading {
    display: none;
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 20px;
}

.loading-dots div {
    position: absolute;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4285f4;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots div:nth-child(1) {
    left: 8px;
    animation: loading-dots1 0.6s infinite;
}

.loading-dots div:nth-child(2) {
    left: 8px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(3) {
    left: 32px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(4) {
    left: 56px;
    animation: loading-dots3 0.6s infinite;
}

@keyframes loading-dots1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading-dots2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

@keyframes loading-dots3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

.loading-text {
    color: #666;
    font-size: 16px;
    margin-top: 15px;
    font-family: 'League Spartan', sans-serif;
}

.back-button {
    display: block;
    max-width: 800px;
    width: 90%;
    margin: 0 auto 20px auto;
}

/* Articles page styles */
.articles-search {
    margin: 20px 0;
    position: relative;
}

.article-search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    font-size: 16px;
    padding-right: 50px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #5f6368;
}

.search-icon:hover {
    color: #202124;
}

.article-item {
    padding: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item time {
    color: #5f6368;
    font-size: 14px;
}

.article-item h2 {
    margin: 8px 0;
    font-size: 18px;
}

.article-item h2 a {
    color: #1a73e8;
    text-decoration: none;
}

.article-item h2 a:hover {
    text-decoration: underline;
}

/* Add styles for video container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Thank you page styles */
.thank-you {
    text-align: center;
    padding: 40px 20px;
}

.thank-you h1 {
    color: #4285f4;
    margin-bottom: 30px;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-content p {
    margin: 20px 0;
    line-height: 1.6;
}

.thank-you-content .button {
    margin-top: 30px;
    display: inline-block;
    text-decoration: none;
}

/* Payment related styles */
.payment-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.payment-buttons button,
.payment-buttons #paypal-button-container {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

#payment-method-selection {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

#payment-method-selection h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}