/* 
 * Teen Patti Master Styles 
 * Extracted from user source
 */

/* Dynamic CSS Variables - Fingerprint Protection */
:root {
    --color-main: #2d1a7a;
    --color-main-dark: #0d173a;
    --color-secondary: #d35400;
    --color-accent: #f39c12;
    --color-success: #27ae60;
    --color-warning: #e67e22;
    --color-danger: #c0392b;
    --color-light: #f8f9fa;
    --color-dark: #2c3e50;
    --color-gray: #2c2c2c;
    --color-gray-light: #ecf0f1;
    --radius-default: 12px;
    --shadow-default: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition-default: all 0.3s ease;
}

/* Base Reset and Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Section Styles */
.site-header {
    background: var(--color-main);
    color: white;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-default);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-main);
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.navigation-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition-default);
    white-space: nowrap; /* Prevent text wrapping */
    display: block; /* Ensure correct block formatting context */
}

.nav-item:hover, .nav-item.current {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.mobile-nav-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Banner Section */
.hero-banner {
    background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-dark) 100%);
    color: white;
    padding: 1rem 0 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subheading {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-default);
}

.button-primary {
    background: var(--color-accent);
    color: white;
    border: 0;
    cursor: pointer;
}

.button-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Content Sections Styling */
.content-block {
    padding: 4rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.2rem;
    color: var(--color-main);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.content-media {
    border-radius: var(--radius-default);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    max-height: 400px; /* Constrain height */
}

.content-media img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure image is fully visible */
    display: block;
}

.content-details h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-main);
}

.content-details p {
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* Application Information Section */
.app-details-section {
    background: white;
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-default);
    padding: 1rem;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.app-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.app-info-table th, .app-info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-light);
}

.app-info-table th {
    width: 40%;
    color: var(--color-main);
    font-weight: 600;
}

.download-button-large {
    width: 100%;
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius-default);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: var(--transition-default);
    border: 0;
    cursor: pointer;
}

.download-button-large:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

/* Rankings Display Section */
.rankings-section {
    background: var(--color-gray-light);
    padding: 4rem 0;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ranking-item {
    background: white;
    border-radius: var(--radius-default);
    overflow: hidden;
    box-shadow: var(--shadow-default);
    transition: var(--transition-default);
}

.ranking-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.ranking-header {
    background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-dark) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.ranking-content {
    padding: 1.5rem;
}

.ranking-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.ranking-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.ranking-description {
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.ranking-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
}

.ranking-action {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--color-main);
    color: white;
    border-radius: var(--radius-default);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition-default);
}

.ranking-action:hover {
    background: var(--color-main-dark);
}

/* FAQ Section Styling */
.faq-section {
    padding: 4rem 0;
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-element {
    margin-bottom: 1rem;
    border-radius: var(--radius-default);
    overflow: hidden;
    box-shadow: var(--shadow-default);
}

.faq-question {
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
}

.faq-element.active .faq-answer {
    padding: 1.5rem;
    max-height: 300px;
}

.faq-indicator {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-element.active .faq-indicator {
    transform: rotate(45deg);
}

/* Footer Section */
.site-footer {
    background: var(--color-main-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-default);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design Adjustments */
/* Responsive Design Adjustments */
@media (max-width: 991px) { /* Changed to 991px for Tabet support */
    .mobile-nav-toggle {
        display: block;
    }

    .navigation-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-main-dark);
        /* Mobile menu transitions */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 1rem; /* Start with 0 vertical padding */
        transition: all 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        gap: 0; /* Remove gap for list items */
        visibility: hidden; /* Hide cleanly when closed */
        z-index: 1000;
    }
    
    .navigation-menu.active {
        max-height: 500px; /* Arbitrary large height */
        opacity: 1;
        visibility: visible;
        padding: 1rem;
    }

    .nav-item {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-radius: 0;
        width: 100%;
    }

    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-item:hover, .nav-item.current {
        background-color: rgba(255, 255, 255, 0.05);
        padding-left: 1.5rem; /* Slide effect on hover */
    }
    
    .header-inner {
        padding: 0 0.5rem; /* Slight padding on mobile header */
    }

    /* Adjust content for tablet/mobile */
    .hero-heading {
        font-size: 2rem;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .content-media {
        order: -1; /* Image showing first on mobile often looks better */
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .button {
        width: 100%;
        justify-content: center;
    }
    
    .rankings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 1.2rem;
    }
    
    .hero-heading {
        font-size: 1.75rem;
    }
}

/* Animation Effects */
@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: contentFadeIn 0.6s ease forwards;
}

/* Sticky Download Button */
.sticky-download {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    display: none; /* Hidden on desktop by default */
}

@media (max-width: 768px) {
    .sticky-download {
        display: block;
    }
    
    /* Add padding to footer so it doesn't get covered */
    .site-footer {
        padding-bottom: 80px; 
    }
}

.sticky-download-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px; /* Consistent spacing */
}

.sticky-icon {
    width: 44px; /* Slightly larger for better touch target visibility */
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    display: block; /* Removes baseline alignment issues */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.sticky-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    flex-grow: 1;
    color: white;
    line-height: 1.2; /* Tighter line height */
}

.sticky-title {
    font-weight: 700;
    font-size: 1rem; /* readable size */
    color: var(--color-accent);
}

.sticky-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.sticky-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap; /* Prevent button text wrapping */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
