/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, #E6F3FF 0%, #B8E6FF 30%, #87CEEB 60%, #F0F8FF 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.page-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Плейсхолдер для фонового изображения */
.background-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #E6F3FF 0%, #B8E6FF 30%, #87CEEB 60%, #F0F8FF 100%);
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.background-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.background-path {
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: #87CEEB;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    word-break: break-all;
}

/* Стили для ошибок загрузки */
.error-state {
    border: 2px solid #FF4444 !important;
    background: linear-gradient(145deg, #FF6B6B, #FF4444) !important;
}

.error-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.error-message {
    color: #FFE6E6;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Стили для загруженных изображений */
.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

/* Стили для фонового изображения при загрузке */
.background-placeholder.loaded {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background-info.error-state {
    background: rgba(255, 68, 68, 0.9) !important;
    border-color: #FF0000 !important;
}

/* Главная кликабельная картинка */
.main-image-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    margin: 0 auto;
}

.main-image-placeholder {
    width: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 18px;
    pointer-events: none;
}

.main-image-info {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
}

.main-image-text {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.main-image-path {
    font-size: 16px;
    font-family: 'Courier New', monospace;
    color: #87CEEB;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    word-break: break-all;
    margin-bottom: 10px;
}

.main-image-description {
    font-size: 14px;
    color: #E0E0E0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Эффект матового стекла для центральной карточки */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

/* Верхняя секция с иконками и ценой */
.top-section {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Плейсхолдеры для иконок социальных сетей */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
    max-width: 300px;
}

.icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    overflow: hidden;
}

.whatsapp-placeholder {
    background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
}

.instagram-placeholder {
    background: linear-gradient(145deg, #E4405F 0%, #F77737 50%, #FCAF45 100%);
}

.tiktok-placeholder {
    background: linear-gradient(145deg, #000000 0%, #FF0050 100%);
}

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.placeholder-text {
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 4px;
}

.placeholder-path {
    color: rgba(255, 255, 255, 0.8);
    font-size: 8px;
    font-weight: normal;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    line-height: 1.1;
}

/* Ценовой тег */
.price-tag {
    background: #FFD700;
    border: 4px solid #000;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 10;
    margin-left: 20px;
}

.price-label {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-bottom: 3px;
}

.price-value {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

/* Основной контент */
.main-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.main-heading {
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.strikethrough-text {
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 12px;
    text-decoration: line-through;
    text-decoration-color: #FF0000;
    text-decoration-thickness: 3px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

/* Информационный блок */
.info-box {
    background: #FFD700;
    border-radius: 15px;
    padding: 20px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
}

.info-icon {
    background: #FF0000;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.info-text {
    color: #000;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.additional-info {
    color: white;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

/* Кнопки */
.consultation-btn {
    background: #1E3A8A;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.bottom-consultation-btn {
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 15px;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-image-container {
        max-width: 400px;
    }
    
    .main-image-placeholder {
        min-height: 180px;
    }
    
    .main-image-info {
        padding: 15px;
    }
    
    .main-image-text {
        font-size: 18px;
    }
    
    .main-image-path {
        font-size: 12px;
    }
    
    .main-image-description {
        font-size: 10px;
    }
    
    .social-icons {
        justify-content: center;
        max-width: none;
    }
    
    .top-section {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .price-tag {
        order: -1;
        margin-left: 0;
    }
    
    .info-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        max-width: 350px;
    }
    
    .main-image-placeholder {
        min-height: 150px;
    }
    
    .main-image-info {
        padding: 15px;
    }
    
    .main-image-text {
        font-size: 16px;
    }
    
    .main-image-path {
        font-size: 10px;
    }
    
    .main-image-description {
        font-size: 9px;
    }
    
    .background-info {
        padding: 15px;
        margin: 20px;
    }
    
    .background-text {
        font-size: 16px;
    }
    
    .background-path {
        font-size: 12px;
    }
    
    .error-icon {
        font-size: 20px;
    }
    
    .error-message {
        font-size: 10px;
    }
}
