/* product.css - Стили для страницы деталей приложения */

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C63FF;
    --secondary: #FF6B6B;
    --dark: #1A1A2E;
    --light: #F1F1F6;
    --gray: #888;
    --success: #2ed573;
    --warning: #ffa502;
    --danger: #ff4757;
    --dark-card: rgba(255, 255, 255, 0.05);
    --dark-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* ===== ШАПКА СТРАНИЦЫ ===== */
.page-header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.store-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.store-logo:hover {
    opacity: 0.8;
}

.store-logo img {
    height: 40px;
    width: auto;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
    color: var(--light);
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs i.fa-chevron-right {
    color: var(--gray);
    font-size: 0.8rem;
}

.breadcrumbs span {
    color: var(--light);
    font-weight: 500;
}

/* ===== ОСНОВНОЕ СОДЕРЖИМОЕ ===== */
.product-main {
    min-height: calc(100vh - 80px);
    background: 
        radial-gradient(circle at 20% 50%, rgba(108, 99, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.1) 0%, transparent 30%);
    padding: 40px 0;
}

/* ===== ЗАГОЛОВОК ПРОДУКТА ===== */
.product-header {
    background: var(--dark-card);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--dark-border);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
    position: relative;
    overflow: hidden;
}

.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.product-header:hover::before {
    left: 100%;
}

.product-hero {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.product-icon {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    object-fit: cover;
    border: 4px solid var(--primary);
    background: rgba(108, 99, 255, 0.1);
    padding: 10px;
    box-shadow: 0 12px 35px rgba(108, 99, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-hero:hover .product-icon {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.5);
}

.product-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-version {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(108, 99, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid rgba(108, 99, 255, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag:hover {
    background: rgba(108, 99, 255, 0.3);
    transform: scale(1.05);
}

/* ===== ОСНОВНАЯ КНОПКА СКАЧИВАНИЯ ===== */
.product-download-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 280px;
}

.btn-download-main {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-download-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-download-main:hover::before {
    left: 100%;
}

.btn-download-main:hover:not(.disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.4);
}

.btn-download-main.disabled {
    background: var(--gray);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-download-main.disabled::before {
    display: none;
}

.download-hint {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    line-height: 1.4;
}

.download-hint i {
    margin-right: 5px;
}

/* ===== СЕКЦИИ ПРОДУКТА ===== */
.product-section {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.product-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.product-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-section h2 i {
    font-size: 1.3rem;
}

/* ===== ОПИСАНИЕ ===== */
.product-description {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* ===== ПРОГРЕСС РАЗРАБОТКИ ===== */
.progress-section {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(255, 107, 107, 0.1));
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 6px;
    transition: width 1.5s ease-in-out;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.5);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-text {
    font-size: 1rem;
    color: var(--light);
    font-weight: 600;
}

/* ===== СИСТЕМНЫЕ ТРЕБОВАНИЯ ===== */
.system-req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.req-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.req-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.req-item strong {
    color: var(--light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.req-item span {
    color: var(--gray);
    text-align: right;
}

/* ===== СКРИНШОТЫ ===== */
.screenshots-container {
    display: block; 
    overflow-x: visible; 
}

.screenshot-image {
    max-width: 600px; 
    width: 100%;
    display: block; 
    margin: 0 auto 20px auto;
    height: auto; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    cursor: zoom-in; 
    transition: transform 0.2s ease-in-out;
}

.screenshot-image:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===== ВИДЕО ===== */
.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--dark-border);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== ДОПОЛНЕНИЯ И ЯЗЫКОВЫЕ ПАКЕТЫ ===== */
.addons-container,
.language-packs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.addon-card,
.lang-pack-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.addon-card:hover,
.lang-pack-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.addon-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.addon-info strong {
    color: var(--light);
    font-size: 1.1rem;
}

.addon-info span {
    color: var(--gray);
    font-size: 0.9rem;
}

.addon-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.5;
}

.lang-pack-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-pack-card strong {
    color: var(--light);
}

.lang-pack-card span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== ВИДЖЕТЫ ДРУГИХ ИСТОЧНИКОВ ===== */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.widget-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.widget-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.widget-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.widget-iframe-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid var(--dark-border);
}

.game-widget {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== ОБЩАЯ ИНФОРМАЦИЯ ===== */
.product-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 30px;
}

.info-card div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-card strong {
    color: var(--light);
    font-size: 0.9rem;
}

.info-card span {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== КНОПКИ ===== */
.btn {
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid var(--dark-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ===== ВОЗРАСТНОЙ РЕЙТИНГ ===== */
.age-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    gap: 5px;
}

.age-rating.rating-18 {
    background: var(--danger);
    color: white;
}

.age-rating.rating-12 {
    background: var(--warning);
    color: black;
}

.age-rating.rating-6 {
    background: var(--success);
    color: white;
}

/* ===== СТАТУС-БАДЖИ ===== */
.status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.status-dev {
    background: var(--primary);
    color: white;
}

/* ===== СОСТОЯНИЯ ЗАГРУЗКИ ===== */
#product-loading,
#product-error,
#product-content {
    transition: opacity 0.3s ease;
}

.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-container {
    text-align: center;
}

.error-message {
    padding: 60px 20px;
    color: var(--danger);
}

.error-message h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.btn-retry {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ ИЗОБРАЖЕНИЙ ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--dark);
    border-radius: 20px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    border: 2px solid var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10001;
}

.close-modal:hover {
    color: var(--secondary);
}

#modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#modal-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.1rem;
    text-align: center;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .product-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-download-main {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .product-main {
        padding: 20px 0;
    }
    
    .product-header {
        padding: 30px;
    }
    
    .product-hero {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .product-icon {
        align-self: center;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    .product-meta {
        justify-content: center;
    }
    
    .product-tags {
        justify-content: center;
    }
    
    .videos-container {
        grid-template-columns: 1fr;
    }
    
    .system-req-grid {
        grid-template-columns: 1fr;
    }
    
    .widgets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .product-header {
        padding: 20px;
    }
    
    .product-section {
        padding: 20px;
    }
    
    .product-info h1 {
        font-size: 1.7rem;
    }
    
    .btn-download-main {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
    
    .product-info-grid {
        grid-template-columns: 1fr;
    }
    
    .addons-container,
    .language-packs-container {
        grid-template-columns: 1fr;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-section {
    animation: fadeInUp 0.6s ease;
}

.product-section:nth-child(odd) {
    animation-delay: 0.1s;
}

.product-section:nth-child(even) {
    animation-delay: 0.2s;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* ===== FOCUS STYLES ===== */
button:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
/* Дополнительные стили для статусов */
.status-discontinued {
    background: var(--danger);
    color: white;
}

.status-dev {
    background: var(--primary);
    color: white;
}

/* Стили для дополнительной информации */
.additional-info-container {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--dark-border);
}

.additional-requirements-title {
    color: var(--warning);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.additional-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.additional-info-item {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.additional-info-item i {
    color: var(--warning);
    width: 16px;
}