/* 
 * Precious Pics Pro - Telegram Mini App Styles
 * Dark elegant theme matching brand aesthetic
 */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --accent-gold: #d4af37;
    --telegram-blue: #0088cc;
    --success-green: #4caf50;
    --error-red: #f44336;
    --border-color: #e0e0e0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.brand {
    font-family: Georgia, 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Loading State */
.loading-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error State */
.error-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
}

.error-icon {
    font-size: 64px;
}

.error-state h2 {
    font-family: Georgia, serif;
    font-size: 24px;
    color: var(--text-primary);
}

.error-state p {
    color: var(--text-secondary);
    max-width: 300px;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Lead Card */
.lead-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
}

.lot-number {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    letter-spacing: 1px;
}

.lead-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-gold), #c49a36);
    color: #000;
}

.lead-badge.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #fff;
}

.lead-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    margin-top: 2px;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Price Section */
.price-section {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.price-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.star-icon {
    font-size: 32px;
}

.price-value span:nth-child(2) {
    font-family: Georgia, serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.price-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    width: 100%;
    margin-top: 4px;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #c49a36);
    color: #000000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 1px solid #b89a2a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #e5c047, #d4af37);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: #eeeeee;
    border-color: #cccccc;
}

.btn-icon {
    font-size: 18px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

/* Channels Section */
.channels-section {
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.channels-title {
    font-family: Georgia, serif;
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.channels-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.channel-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.channel-btn:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.channel-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.channel-region {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.separator {
    color: var(--text-muted);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 400px;
    text-align: center;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.modal-content h2 {
    font-family: Georgia, serif;
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.modal-subtext {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px !important;
}

.modal-content .btn {
    margin-top: 12px;
}

/* About, Terms, Privacy Pages */
.page-content {
    flex: 1;
    padding: 20px 0;
}

.page-content h1 {
    font-family: Georgia, serif;
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.page-content h2 {
    font-family: Georgia, serif;
    font-size: 24px;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 12px;
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.page-content ul, .page-content ol {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
    line-height: 1.7;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content strong {
    color: var(--text-primary);
}

.highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #e5c047;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .brand {
        font-size: 24px;
    }
    
    .price-value span:nth-child(2) {
        font-size: 40px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

