/**
 * Amaga.Club - Pages Styles
 * Common styles for all subpages
 */

:root {
    --primary-color: #3a7bd5;
    --primary-dark: #2b5fa0;
    --secondary-color: #00d2ff;
    --success-color: #00c853;
    --danger-color: #ff5252;
    --warning-color: #ffc107;
    --text-primary: #333;
    --text-secondary: #666;
    --bg-color: #f0f7ff;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    background-image: radial-gradient(#d0e4ff 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    background: -webkit-linear-gradient(var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.login-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: rgba(58, 123, 213, 0.1);
}

.signup-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 9px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* =============================================================================
   PAGE HERO
   ============================================================================= */
.page-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.05), rgba(0, 210, 255, 0.05));
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 36px;
    box-shadow: 0 10px 30px rgba(58, 123, 213, 0.3);
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================================================
   PAGE CONTENT
   ============================================================================= */
.page-content {
    padding: 60px 0;
    flex: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.content-main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.content-main h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.content-main > p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-item i {
    font-size: 24px;
    color: var(--success-color);
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(58, 123, 213, 0.3);
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list i {
    color: var(--primary-color);
    width: 20px;
}

.info-card.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.info-card.highlight h3 {
    color: white;
}

.info-card.highlight p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.card-cta {
    display: block;
    background: white;
    color: var(--primary-color);
    text-align: center;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
    background: white;
    padding: 30px 0;
    margin-top: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0 40px;
    }
    
    .page-hero h1 {
        font-size: 32px;
    }
    
    .content-main {
        padding: 25px;
    }
    
    .content-main h2 {
        font-size: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-buttons {
        display: none;
    }
    
    .info-card {
        min-width: 100%;
    }
}

/* =============================================================================
   FORM STYLES (for Contact, FAQ pages)
   ============================================================================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e8eef5;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(58, 123, 213, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 123, 213, 0.3);
}

/* =============================================================================
   FAQ ACCORDION
   ============================================================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(58, 123, 213, 0.05);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================================================
   LEGAL PAGES (Terms, Privacy)
   ============================================================================= */
.legal-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: var(--primary-dark);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 18px;
    margin: 25px 0 15px;
}

.legal-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.legal-content ul {
    margin: 15px 0 15px 30px;
    color: var(--text-secondary);
}

.legal-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 30px;
}

/* =============================================================================
   COOKIE CONSENT POPUP (GDPR)
   ============================================================================= */
.cookie-consent-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-consent-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    padding: 25px;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.cookie-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 15px auto;
}

.cookie-consent-container h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-primary);
}

.cookie-consent-container > p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.cookie-settings {
    margin-bottom: 20px;
    background-color: #f8faff;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-settings summary {
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-color);
    outline: none;
    transition: background-color 0.3s;
    user-select: none;
    list-style: none;
}

.cookie-settings summary:hover {
    background-color: rgba(58, 123, 213, 0.05);
}

.cookie-settings summary::-webkit-details-marker {
    display: none;
}

.cookie-settings summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    transition: transform 0.3s;
}

.cookie-settings[open] summary::after {
    transform: rotate(180deg);
}

.cookie-options {
    padding: 15px;
}

.cookie-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-option label {
    font-weight: 500;
    margin-right: 10px;
    cursor: pointer;
}

.cookie-option .description {
    font-size: 12px;
    color: var(--text-secondary);
    flex-basis: 100%;
    margin-top: 5px;
    margin-left: 28px;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.accept-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 10px rgba(58, 123, 213, 0.2);
}

.accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(58, 123, 213, 0.3);
}

.reject-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.reject-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.customize-btn {
    background-color: #f0f7ff;
    color: var(--primary-color);
    border: 1px solid rgba(58, 123, 213, 0.2);
}

.customize-btn:hover {
    background-color: #e1eeff;
}

.cookie-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cookie-link {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.cookie-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f7ff;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.cookie-close-btn:hover {
    background-color: #e1eeff;
    color: var(--primary-color);
}

@media (max-width: 640px) {
    .cookie-consent-container {
        padding: 20px 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-option {
        margin-bottom: 15px;
    }
}
