/* 3 Card Brag Platform - Main Stylesheet */
/* Optimized for performance and SEO */

/* Import Icons CSS */
@import url('icons.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #e9ecef;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-item {
    margin-right: 10px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

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

.breadcrumb-item[aria-current="page"] a {
    color: #6c757d;
    font-weight: 500;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #007bff;
    color: #fff;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
}

.btn-login {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-login:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-register {
    background-color: #28a745;
    color: #fff;
}

.btn-register:hover {
    background-color: #1e7e34;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 600px;
    justify-content: center;
}

.hero-container {
    flex: 1;
    padding-right: 60px;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
    text-align: left;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
}

.hero-image {
    flex: 1;
    text-align: center;
    max-width: 500px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Content Sections */
.brand-intro,
.platform-features,
.registration-process,
.advantages-security,
.faq-section,
.cta-section,
.about-content,
.policy-content,
.terms-content,
.disclaimer-content,
.support-content {
    padding: 80px 0;
}

.brand-intro h2,
.platform-features h2,
.registration-process h2,
.advantages-security h2,
.faq-section h2,
.cta-section h2,
.about-content h2,
.policy-content h2,
.terms-content h2,
.disclaimer-content h2,
.support-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    font-weight: 700;
}

.brand-intro p,
.about-content p,
.policy-content p,
.terms-content p,
.disclaimer-content p,
.support-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #007bff;
}

.step p {
    color: #555;
    line-height: 1.8;
}

/* Advantages & Security */
.advantages-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.advantages-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.security-features {
    text-align: center;
}

.security-features img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.security-features ul {
    list-style: none;
    text-align: left;
}

.security-features li {
    padding: 10px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.security-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: #fff;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-item h3 {
    background: #007bff;
    color: #fff;
    padding: 20px;
    margin: 0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-item h3:hover {
    background: #0056b3;
}

.faq-item p {
    padding: 20px;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Policy Sections */
.policy-section,
.terms-section,
.disclaimer-section {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.policy-section h2,
.terms-section h2,
.disclaimer-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    text-align: left;
}

.policy-section h3,
.terms-section h3,
.disclaimer-section h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: #007bff;
}

.policy-section ul,
.terms-section ul,
.disclaimer-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.policy-section li,
.terms-section li,
.disclaimer-section li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

/* About Page Specific */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #007bff;
}

.value-item p {
    color: #555;
    line-height: 1.6;
}

/* Support Page Specific */
.support-methods {
    margin-top: 50px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.support-method {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.support-method h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #007bff;
}

.support-method p {
    color: #555;
    line-height: 1.6;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.issue-category {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.issue-category h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #007bff;
}

.issue-category ul {
    list-style: none;
    padding: 0;
}

.issue-category li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.issue-category li:last-child {
    border-bottom: none;
}

.response-times {
    margin-top: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.response-times ul {
    list-style: none;
    padding: 0;
}

.response-times li {
    padding: 10px 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.response-times li:last-child {
    border-bottom: none;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #007bff;
}

.contact-item p {
    color: #555;
    margin-bottom: 5px;
}

/* 404 Error Page */
.error-section {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.error-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.error-text h1 {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.error-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.error-text ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 30px;
}

.error-text li {
    margin-bottom: 10px;
    color: #555;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.helpful-links {
    margin-top: 50px;
}

.helpful-links h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.link-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.link-item:hover {
    transform: translateY(-5px);
}

.link-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.link-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.search-section {
    margin-top: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.search-section p {
    margin-bottom: 20px;
    color: #555;
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.suggestion-link {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.suggestion-link:hover {
    background: #0056b3;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .auth-buttons {
        justify-content: center;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-container {
        padding-right: 0;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .advantages-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .error-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .error-text h1 {
        font-size: 3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .brand-intro h2,
    .platform-features h2,
    .registration-process h2,
    .advantages-security h2,
    .faq-section h2,
    .cta-section h2,
    .about-content h2,
    .policy-content h2,
    .terms-content h2,
    .disclaimer-content h2,
    .support-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .features-grid,
    .process-steps,
    .support-grid,
    .issues-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .error-text h1 {
        font-size: 2.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border: 2px solid #fff;
    }
    
    .btn-secondary {
        background-color: #333;
        border: 2px solid #fff;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: #000;
        border: 2px solid #fff;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .breadcrumb,
    .auth-buttons {
        display: none;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .page-header {
        background: none;
        color: #000;
        padding: 20px 0;
    }
}

/* 404 Page Icons */
.error-icon {
    font-size: 120px;
    color: #dc3545;
    text-align: center;
    margin: 40px 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.home-icon {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.about-icon {
    background: linear-gradient(45deg, #17a2b8, #6f42c1);
}

.support-icon {
    background: linear-gradient(45deg, #fd7e14, #e83e8c);
}

.register-icon {
    background: linear-gradient(45deg, #007bff, #6610f2);
}
