/* Golubuschka site styles — uses CSS variables from theme.css */

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

        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: var(--textDark);
            background-color: var(--sectionBg);
        }

        /* Header */
        header {
            background: var(--headerGradient);
            color: var(--primary);
            padding: 100px 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header-content {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        h1 {
            font-size: 3.5em;
            margin-bottom: 20px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        }

        .subtitle {
            font-size: 1.5em;
            margin-bottom: 30px;
            opacity: 0.8;
            color: var(--primary);
        }

        .btn {
            display: inline-block;
            padding: 15px 30px;
            background: var(--btnGradient);
            color: var(--textOnPrimary);
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(129, 212, 250, 0.3);
        }

        .btn:hover {
            background: var(--btnHoverGradient);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(129, 212, 250, 0.4);
        }

        /* Sections */
        section {
            padding: 80px 0;
        }

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

        h2 {
            text-align: center;
            font-size: 2.5em;
            margin-bottom: 50px;
            color: var(--primary);
        }

        /* About */
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }

        .about-text {
            font-size: 1.1em;
            color: var(--textMuted);
        }

        .about-image {
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            background: var(--bgLight);
            min-height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-style: italic;
        }

        .about-image img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.3s ease;
        }

        .about-image:hover img {
            transform: scale(1.05);
        }

        /* Features */
        .features {
            background-color: var(--featuresBg);
        }

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

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

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

        .feature-icon {
            font-size: 3em;
            margin-bottom: 20px;
        }

        .feature-card h3 {
            margin-bottom: 15px;
            color: var(--primary);
        }

        /* Gallery */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .gallery-item {
            border-radius: 15px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            background: var(--bgLight);
            min-height: 250px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-style: italic;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

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

        /* Kittens */
        .kittens-info {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 50px;
            font-size: 1.1em;
            color: var(--textMuted);
        }

        /* Contact */
        .contact {
            background: var(--headerGradient);
            color: var(--primary);
        }

        .contact h2 {
            color: var(--primary);
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 50px;
            max-width: 600px;
            margin: 0 auto;
        }

        .contact-info {
            font-size: 1.1em;
            text-align: center;
        }

        .contact-item {
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .contact-icon {
            font-size: 2em;
            margin-right: 20px;
            width: 40px;
            text-align: center;
        }

        .contact-link {
            color: var(--primary);
            text-decoration: none;
            font-size: 1.2em;
            font-weight: bold;
            transition: color 0.3s ease;
        }

        .contact-link:hover {
            color: var(--primaryDark);
        }

        .messenger-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            margin-top: 40px;
        }

        .messenger-btn {
            color: var(--primary);
            display: inline-flex;
            align-items: center;
            padding: 15px 30px;
            background: var(--cardBg);
            color: var(--primary);
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            border: 2px solid var(--cardBorder);
        }

        .messenger-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        }

        .messenger-btn.max:hover {
            background: #7B2D8B;
            color: var(--textOnPrimary);
            border-color: #7B2D8B;
        }

        .messenger-btn.telegram:hover {
            background: var(--accentHover);
            color: var(--textOnPrimary);
            border-color: var(--accentHover);
        }

        .btn-icon {
            font-size: 1.5em;
            margin-right: 10px;
        }

        /* Footer */
        footer {
            background-color: var(--primary);
            color: var(--textOnPrimary);
            text-align: center;
            padding: 30px 0;
        }

        /* Placeholder for images */
        .image-placeholder {
            padding: 20px;
            text-align: center;
            color: var(--textMuted2);
        }

        /* Responsive */
        @media (max-width: 768px) {
            h1 {
                font-size: 2.5em;
            }
            
            .subtitle {
                font-size: 1.2em;
            }
            
            .about-content {
                grid-template-columns: 1fr;
            }
            
            section {
                padding: 50px 0;
            }

            .messenger-buttons {
                flex-direction: column;
                align-items: center;
            }

            .messenger-btn {
            color: var(--primary);
                width: 250px;
                justify-content: center;
            }
        }

.loading {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
            color: var(--textMuted2);
            font-size: 1.1em;
        }
        .spinner {
            width: 40px;
            height: 40px;
            margin: 0 auto 15px;
            border: 4px solid var(--bgLight2);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .no-photos {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
            color: var(--textMuted2);
            font-size: 1.1em;
            font-style: italic;
        }
        .gallery-error {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px 20px;
            color: #c62828;
            font-size: 1.0em;
        }
        .kitten-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 10px 12px;
            background: linear-gradient(transparent, rgba(0,0,0,0.7));
            color: var(--textOnPrimary);
            font-size: 0.95em;
            text-align: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        .kitten-item:hover .kitten-caption {
            opacity: 1;
        }

        .kitten-item {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            aspect-ratio: 4/3;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        .kitten-item:hover {
            transform: scale(1.03);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }
        .kitten-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .lightbox {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            cursor: pointer;
        }
        .lightbox.active {
            display: flex;
        }
        .lightbox img {
            max-width: 90%;
            max-height: 90%;
            border-radius: 10px;
            box-shadow: 0 0 40px rgba(0,0,0,0.5);
        }
        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: var(--textOnPrimary);
            font-size: 2.5em;
            cursor: pointer;
            transition: color 0.2s;
        }
        .load-more-wrap {
            grid-column: 1 / -1;
            text-align: center;
            padding: 30px 0;
        }
        .load-more-btn {
            display: inline-block;
            padding: 14px 40px;
            background: var(--cardBg);
            color: var(--primary);
            border: 2px solid var(--cardBorder);
            border-radius: 50px;
            font-size: 1.05em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        }
        .load-more-btn:hover {
            background: var(--primary);
            color: var(--textOnPrimary);
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(46,125,50,0.3);
        }

        .lightbox-close:hover {
            color: #ccc;
        }

#chat-toggle {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--chatHeaderGradient);
            color: var(--textOnPrimary);
            font-size: 28px;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(46,125,50,0.4);
            z-index: 10000;
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #chat-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 28px rgba(46,125,50,0.5);
        }
        #chat-window {
            position: fixed;
            bottom: 96px;
            right: 24px;
            width: 360px;
            height: 500px;
            max-height: calc(100vh - 120px);
            background: var(--cardBg);
            border-radius: 16px;
            box-shadow: 0 8px 40px rgba(0,0,0,0.2);
            z-index: 9999;
            display: none;
            flex-direction: column;
            overflow: hidden;
        }
        #chat-window.open {
            display: flex;
        }
        #chat-header {
            background: var(--chatHeaderGradient);
            color: var(--textOnPrimary);
            padding: 14px 18px;
            font-weight: bold;
            font-size: 1.05em;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        #chat-close {
            background: none;
            border: none;
            color: var(--textOnPrimary);
            font-size: 1.4em;
            cursor: pointer;
            padding: 0 4px;
        }
        #chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            background: var(--sectionBg);
        }
        .chat-msg {
            max-width: 85%;
            padding: 10px 14px;
            border-radius: 16px;
            font-size: 0.93em;
            line-height: 1.45;
            word-wrap: break-word;
            animation: fadeIn 0.3s;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .chat-msg.user {
            align-self: flex-end;
            background: #e8f5e9;
            border-bottom-right-radius: 4px;
            color: var(--primaryDark);
        }
        .chat-msg.assistant {
            align-self: flex-start;
            background: var(--cardBg);
            border-bottom-left-radius: 4px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.08);
            color: var(--textDark);
        }
        .chat-msg.typing {
            align-self: flex-start;
            background: var(--cardBg);
            border-bottom-left-radius: 4px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.08);
            color: #999;
            font-style: italic;
        }
        #chat-input-area {
            display: flex;
            padding: 12px;
            gap: 8px;
            border-top: 1px solid #e0e0e0;
            background: var(--cardBg);
        }
        #chat-input {
            flex: 1;
            padding: 10px 14px;
            border: 2px solid var(--cardBorder);
            border-radius: 24px;
            font-size: 0.93em;
            outline: none;
            transition: border-color 0.2s;
        }
        #chat-input:focus {
            border-color: var(--primary);
        }
        #chat-send {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--primary);
            color: var(--textOnPrimary);
            border: none;
            font-size: 1.2em;
            cursor: pointer;
            transition: background 0.2s;
            flex-shrink: 0;
        }
        #chat-send:hover {
            background: var(--primaryDark);
        }
        #chat-send:disabled {
            background: #a5d6a7;
            cursor: default;
        }
        @media (max-width: 480px) {
            #chat-window {
                width: calc(100vw - 16px);
                right: 8px;
                left: 8px;
                bottom: 88px;
            }
        }
/* Admin chat styles */
.admin-actions {
    background: transparent !important;
    box-shadow: none !important;
    padding: 4px !important;
}
.admin-action-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    margin: 4px 0;
    background: var(--cardBg);
    border: 2px solid var(--cardBorder);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.93em;
    font-weight: bold;
    color: var(--primary);
    transition: all 0.2s;
}
.admin-action-btn:hover {
    background: var(--primary);
    color: var(--textOnPrimary);
    border-color: var(--primary);
}
.admin-action-btn.logout {
    border-color: #e0e0e0;
    color: var(--textMuted2);
}
.admin-action-btn.logout:hover {
    background: #f44336;
    color: white;
    border-color: #f44336;
}
.admin-section-label {
    font-size: 0.85em;
    color: var(--textMuted);
    margin: 6px 0 4px;
    font-weight: bold;
}
.admin-theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 6px 0;
}
.admin-theme-btn {
    padding: 8px 12px;
    background: var(--cardBg);
    border: 2px solid var(--cardBorder);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85em;
    color: var(--textDark);
    transition: all 0.2s;
}
.admin-theme-btn:hover {
    background: var(--primary);
    color: var(--textOnPrimary);
    border-color: var(--primary);
}
.admin-theme-btn.active {
    background: var(--bgLight);
    border-color: var(--primary);
    font-weight: bold;
    color: var(--primaryDark);
}
#chat-header.admin {
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
}

/* Model selection in admin */
.admin-model-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0;
}
.admin-model-btn {
    width: 100%;
    padding: 10px 14px;
    background: var(--cardBg);
    border: 2px solid var(--cardBorder);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85em;
    color: var(--textDark);
    text-align: left;
    line-height: 1.5;
    transition: all 0.2s;
}
.admin-model-btn:hover {
    background: var(--primary);
    color: var(--textOnPrimary);
    border-color: var(--primary);
}
.admin-model-btn:hover small {
    color: var(--textOnPrimary);
    opacity: 0.85;
}
.admin-model-btn.active {
    background: var(--bgLight);
    border-color: var(--primary);
    font-weight: bold;
    color: var(--primaryDark);
}
.admin-model-btn small {
    color: var(--textMuted2);
    font-weight: normal;
}

/* Accordion admin menu */
.admin-section-btn {
    display: block;
    width: 100%;
    padding: 11px 16px;
    margin: 3px 0;
    background: var(--cardBg);
    border: 2px solid var(--cardBorder);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    color: var(--primaryDark);
    text-align: left;
    transition: all 0.2s;
}
.admin-section-btn:hover {
    background: var(--bgLight);
    border-color: var(--primary);
}
.admin-category {
    margin: 8px 0 4px;
    padding: 0;
}
