/* External CSS File - templates/theme_1/css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* NOTE: CSS Variables are defined inline in HTML for dynamic brand colors */
/* Each domain gets unique colors from Notion Brand settings */

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
}

/* ==== ОБНОВЛЕННЫЕ СТИЛИ КНОПОК ==== */

/* Основная кнопка (регистрация, "Gioca Ora") */
.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    color: var(--btn-primary-text);
    text-decoration: none;
}

/* Вторичная кнопка (логин) */
.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--btn-secondary-border);
    color: var(--btn-secondary-text);
    transition: all var(--transition-speed);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover);
    color: var(--btn-primary-text); /* белый текст при hover */
    border-color: var(--btn-secondary-hover);
    text-decoration: none;
}

/* View All кнопка (обновлено) */
.view-all {
    color: var(--btn-secondary-text);
    border: 1px solid var(--btn-secondary-border);
    transition: all var(--transition-speed);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.view-all:hover {
    color: var(--btn-primary-text);
    background-color: var(--btn-secondary-hover);
    border-color: var(--btn-secondary-hover);
    text-decoration: none;
}

/* Кнопка "Gioca Ora" на слотах (обновлено) */
.play-button span {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    transition: all var(--transition-speed);
}

.slot-card:hover .play-button span {
    background-color: var(--btn-primary-hover);
}

/* ==== МОБИЛЬНОЕ МЕНЮ ==== */

.mobile-menu {
    display: none;
}

.mobile-menu-toggle:checked ~ .mobile-menu {
    display: block;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    z-index: 50;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-toggle:checked ~ .mobile-menu .mobile-menu-content {
    transform: translateY(0);
}

.hamburger {
    cursor: pointer;
    display: inline-block;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: 0.3s;
}

.mobile-menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ==== КАРТОЧКИ СЛОТОВ ==== */

/* Enhanced slot card hover effects */
.slot-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.slot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.slot-card:hover .play-button {
    opacity: 1;
}

.play-button {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slot-image {
    transition: all 0.3s ease;
}

.slot-card:hover .slot-image {
    transform: scale(1.05);
    filter: brightness(70%);
}

/* ==== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ==== */

/* NEW: Hero image hover effects */
.hero-image-container {
    overflow: hidden;
    border-radius: 0.5rem;
}

.hero-image-container img {
    transition: transform 0.3s ease;
}

.hero-image-container:hover img {
    transform: scale(1.02);
}

/* NEW: Social media icons hover effects */
.social-media-icons a {
    transition: all 0.3s ease;
}

.social-media-icons a:hover {
    transform: scale(1.2);
}

/* NEW: License images hover effects */
.license-item {
    transition: all 0.3s ease;
}

.license-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==== ТИПОГРАФИКА ==== */

/* Typography spacing */
h2 + * {
    margin-top: 0.75rem;
}

h3 + * {
    margin-top: 0.5rem;
}

/* ==== ТАБЛИЦЫ ==== */

/* Table styles */
.loyalty-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.loyalty-table th, .loyalty-table td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

.loyalty-table th {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
}

.loyalty-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.loyalty-table tr:hover {
    background-color: #e6f7e6;
}

/* ==== АДАПТИВНЫЙ ДИЗАЙН ==== */

/* Responsive Design */
@media (min-width: 768px) {
    .mobile-menu-container {
        display: none;
    }
}

@media (max-width: 767px) {
    .desktop-menu {
        display: none;
    }
    
    /* NEW: Mobile-specific hero adjustments */
    .hero-title-mobile {
        font-size: 2.5rem; /* Smaller on mobile */
        line-height: 1.2;
    }
    
    /* NEW: Mobile slots grid - 2 columns */
    .slots-grid-mobile {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* NEW: Mobile social media icons - smaller spacing */
    .social-media-mobile {
        gap: 0.75rem;
    }
    
    /* NEW: Mobile licenses - smaller icons */
    .licenses-mobile .license-item {
        height: 40px;
        width: auto;
        min-width: 60px;
    }
    
    .licenses-mobile .license-item img {
        max-height: 32px;
        max-width: 60px;
    }
}

/* Compact mobile actions */
@media (max-width: 479px) {
    .mobile-actions button {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .mobile-actions .fas {
        font-size: 16px;
    }
    
    /* NEW: Extra small mobile hero title */
    .hero-title-mobile {
        font-size: 2rem;
    }
    
    /* NEW: Compact footer on very small screens */
    .footer-compact {
        padding: 1rem 0;
    }
    
    .footer-compact .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==== СПЕЦИАЛЬНЫЕ СТИЛИ ==== */

/* NEW: Print styles */
@media print {
    .hero-image-container,
    .slot-card,
    .social-media-icons,
    .license-item {
        break-inside: avoid;
    }
    
    .no-print {
        display: none;
    }
}

/* NEW: High contrast mode support */
@media (prefers-contrast: high) {
    .slot-card {
        border: 2px solid #000;
    }
    
    .license-item {
        border: 1px solid #000;
    }
    
    .view-all {
        border: 2px solid currentColor;
    }
}

/* NEW: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .slot-card,
    .slot-image,
    .hero-image-container img,
    .social-media-icons a,
    .license-item,
    .btn-primary,
    .btn-secondary,
    .view-all,
    .play-button span {
        transition: none;
    }
    
    .slot-card:hover {
        transform: none;
    }
    
    .slot-card:hover .slot-image {
        transform: none;
    }
    
    .hero-image-container:hover img {
        transform: none;
    }
}

/* NEW: Focus styles for accessibility */
.slot-card:focus-within,
.hero-image-container:focus-within,
.license-item:focus-within,
.btn-primary:focus,
.btn-secondary:focus,
.view-all:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.social-media-icons a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==== УТИЛИТАРНЫЕ КЛАССЫ ==== */

/* Utility classes */
.no-underline {
    text-decoration: none;
}

.no-underline:hover {
    text-decoration: none;
}

/* NEW: Helper classes for dynamic content */
.dynamic-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.dynamic-content h1,
.dynamic-content h2,
.dynamic-content h3,
.dynamic-content h4,
.dynamic-content h5,
.dynamic-content h6 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.dynamic-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #374151;
}

.dynamic-content ul,
.dynamic-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.dynamic-content li {
    margin-bottom: 0.5rem;
}

.dynamic-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.dynamic-content a:hover {
    color: var(--color-secondary);
}

/* ==== СОСТОЯНИЯ ЗАГРУЗКИ И ОШИБОК ==== */

/* NEW: Loading states */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* NEW: Error states */
.error-state {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

/* NEW: Success states */
.success-state {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}