/*
Theme Name: Panorama Games — Promo Landing
Theme URI: https://panorama.games
Description: Тимчасова промо-тема з новою головною сторінкою. Щоб повернутися — активуйте тему «Panorama Games».
Author: Panorama Team
Version: 1.0.0
Text Domain: panorama-corporate
*/

:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --secondary-color: #f093fb;
    --secondary-dark: #f5576c;
    --accent-color: #4facfe;
    --accent-dark: #00f2fe;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Адаптивні відступи для контейнера */
@media (min-width: 1500px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Page Content Styles */
.site-main {
    min-height: calc(100vh - 200px);
}

.page-container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-excerpt {
    font-size: 18px;
    color: var(--text-light);
}

/* Entry content - для звичайних сторінок з текстом */
.entry-content:not(.panorama-pricing-page-public *) {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Для сторінок з шорткодами (pricing, тощо) - прибираємо фонову рамку */
.entry-content:has(.panorama-pricing-page-public),
.entry-content:has(.panorama-plans-grid) {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Стилі для списків на сторінках */
article#post-58 ul, article#post-3 ul, article#post-27 ul, article#post-48 ul, article#post-31 ul, article#post-34 ul {
    padding: 0px 10px 5px 50px;
}

@media (max-width: 768px) {
    .page-container {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .entry-content:not(.panorama-pricing-page-public *) {
        padding: 20px;
    }
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo:hover {
    opacity: 0.9;
}

.site-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.site-nav .user-menu {
    gap: 15px;
}

.site-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
}

.site-nav a:hover {
    background: rgba(255,255,255,0.15);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-cta {
    display: inline-flex;
    gap: 20px;
}

.btn {
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Games Catalog */
section#games-catalog {
    padding: 0;
}

.games-catalog {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Filters */
.games-filters {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

button#apply-filters {
    width: 300px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.game-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.95);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.game-card-content {
    padding: 24px;
}

.game-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.game-card-description {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.game-card-players {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.game-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Single Game Page */
.single-game-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
}

.single-game-content {
    padding: 60px 0;
}

.game-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.game-description {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.game-description h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.game-info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.game-info-box h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.game-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.game-info-item:last-child {
    border-bottom: none;
}

.game-info-label {
    color: var(--text-light);
    font-weight: 500;
}

.game-info-value {
    color: var(--text-dark);
    font-weight: 600;
}

/* Gallery */
.game-gallery {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.game-gallery h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Hosts Section */
.game-hosts {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.game-hosts h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.host-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.host-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.host-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.host-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.host-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--warning);
}

.host-experience {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.host-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.host-book-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.host-book-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 0;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

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

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

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle .burger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 2px 0;
}

/* Burger animation when menu is open */
.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Responsive - Narrow Desktop (1025px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {
    .site-nav ul {
        gap: 8px;
    }
    
    .site-nav a {
        padding: 6px 10px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .site-logo {
        font-size: 20px;
        gap: 8px;
    }
}

/* Responsive - Tablet & Mobile (до 1024px включно - бургер меню) */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 36px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-details-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile/Tablet Header with Burger Menu */
    .site-header .container {
        flex-wrap: nowrap;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-overlay {
        display: block;
        pointer-events: none;
    }
    
    .mobile-menu-overlay.active {
        pointer-events: auto;
    }
    
    .site-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 30px;
        gap: 0;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    .site-nav.active {
        right: 0;
    }
    
    .site-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .site-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .site-nav ul li:last-child {
        border-bottom: none;
    }
    
    .site-nav a {
        display: block;
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 0;
    }
    
    .site-nav a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .site-nav .user-menu {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .site-logo {
        font-size: 20px;
        gap: 8px;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Hero adjustments */
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section p {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .site-logo {
        font-size: 18px;
    }
    
    .game-card-title {
        font-size: 20px;
    }
    
    .game-description,
    .game-info-box,
    .game-gallery,
    .game-hosts {
        padding: 20px;
    }
}


/* ==========================================
   Contact Page - Unified Styles
   ========================================== */

/* Contact Form Block - integrates with page content */
.contact-page-unified .contact-form-block {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e8ecf1;
}

.contact-page-unified .contact-form-block h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-page-unified .form-intro {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group .required {
    color: var(--danger);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Checkbox */
.checkbox-group {
    margin-top: 8px;
    margin-bottom: 24px;
}

.form-group .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
}

.form-group .checkbox-label input[type="checkbox"] {
    display: none;
}

.form-group .checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--white);
    margin-top: 2px;
}

.form-group .checkbox-label input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-group .checkbox-label input:checked + .checkmark::after {
    content: "✓";
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.checkbox-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-contact-submit {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.btn-contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-contact-submit .btn-loading {
    display: none;
}

.btn-contact-submit.loading .btn-text {
    display: none;
}

.btn-contact-submit.loading .btn-loading {
    display: inline;
}

/* Form Message */
.form-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    display: none;
}

.form-message.success,
.form-message.error {
    display: block;
}

.form-message.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-page-unified .contact-form-block h2 {
        font-size: 24px;
    }
}

/* Captcha field */
.captcha-group input[type="number"] {
    max-width: 150px;
}

.captcha-group input {
    max-width: 80px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}
