/* Rummy777.co - Modern CSS Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b6b;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #ff6b6b;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    background: rgba(255, 255, 255, 0.95);
    margin: 2rem auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content {
    padding: 3rem;
}

h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.8rem;
    color: #444;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #ff6b6b;
    padding-left: 1rem;
}

h3 {
    font-size: 1.4rem;
    color: #555;
    margin: 1.5rem 0 1rem 0;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    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-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

/* FAQ Styles */
.faq {
    background: rgba(248, 249, 250, 0.8);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.faq-question {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Mobile grid adjustments */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Mobile 3-column grid adjustments */
    div[style*="grid-template-columns: 1fr auto 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Mobile 2-column grid adjustments for games section */
    div[style*="grid-template-columns: 1fr 1fr"][style*="align-items: start"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"][style*="align-items: start"] img {
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    /* Mobile adjustments for security section (text left, image right) */
    div[style*="grid-template-columns: 1fr 1fr"][style*="align-items: start"]:has(img[alt*="security"]) {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"][style*="align-items: start"]:has(img[alt*="security"]) img {
        order: -1 !important;
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    div[style*="grid-template-columns: 1fr auto 1fr"] img {
        width: 100% !important;
        max-width: 400px !important;
        margin: 1rem auto !important;
    }
    
    /* Mobile button adjustments for 3-column layout */
    div[style*="grid-template-columns: 1fr auto 1fr"] .btn {
        display: block !important;
        width: 100% !important;
        margin: 0.5rem 0 !important;
        text-align: center !important;
    }
    
    /* Mobile CTA section */
    div[style*="background: linear-gradient(135deg, #ff6b6b, #4ecdc4)"] {
        padding: 2rem 1rem !important;
    }
    
    div[style*="background: linear-gradient(135deg, #ff6b6b, #4ecdc4)"] h2 {
        font-size: 1.5rem !important;
    }
    
    div[style*="background: linear-gradient(135deg, #ff6b6b, #4ecdc4)"] p {
        font-size: 1rem !important;
    }
    
    /* Mobile CTA section image */
    div[style*="background: linear-gradient(135deg, #ff6b6b, #4ecdc4)"] img {
        width: 100% !important;
        max-width: 400px !important;
        margin: 1rem auto !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Schema.org structured data styling */
[itemscope] {
    display: block;
}

[itemprop="name"] {
    font-weight: bold;
}

[itemprop="description"] {
    color: #666;
    font-style: italic;
}
