/* Component Styles for Daily Duaa Platform */

/* Header Component */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover {
    color: var(--primary-dark);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-md);
}

.header-stats {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.language-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.language-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Navigation Component */
.nav-tabs {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.nav-tabs-content {
    display: flex;
    gap: var(--space-8);
    padding: var(--space-4) 0;
}

.nav-tab {
    padding: var(--space-3) 0;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-base);
    transition: var(--transition-fast);
    position: relative;
}

.nav-tab.active,
.nav-tab:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Card Component */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* Content Sections */
.content-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-normal);
}

.content-section:hover {
    box-shadow: var(--shadow-lg);
}

.content-section.prayer {
    border-left-color: var(--danger-color);
}

.content-section.hadith {
    border-left-color: var(--secondary-color);
}

.content-section.verse {
    border-left-color: var(--accent-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.section-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-lg);
}

.section-actions {
    display: flex;
    gap: var(--space-2);
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
}

/* Action Button */
.action-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.action-btn.liked {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

/* Date Section */
.date-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.date-section h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.date-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
    position: relative;
    z-index: 1;
}

.date-item {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Content Text Styles */
.content-text {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.prayer-text {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--danger-color);
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(239, 68, 68, 0.1);
    line-height: var(--leading-relaxed);
}

/* Sidebar Components */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.sidebar-widget {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.widget-header {
    padding: var(--space-5);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-lg);
}

.widget-content {
    padding: var(--space-6);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.stat-card {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.stat-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.stat-card .number {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: var(--space-1);
}

.stat-card:hover .number {
    color: white;
}

.stat-card .label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.stat-card:hover .label {
    color: rgba(255, 255, 255, 0.9);
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
    border: 1px solid var(--border-light);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-base);
    flex-shrink: 0;
}

.social-icon.telegram { background: #0088cc; }
.social-icon.youtube { background: #ff0000; }
.social-icon.instagram { background: #e4405f; }
.social-icon.facebook { background: #1877f2; }
.social-icon.twitter { background: #1da1f2; }
.social-icon.tiktok { background: #000000; }

/* Day Selector */
.day-selector {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.day-selector select {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-base);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.day-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Telegram Modal */
.telegram-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    animation: modalFadeIn 0.5s ease-out;
}

.telegram-modal.hidden {
    display: none;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: modalSlideUp 0.6s ease-out;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--bg-tertiary);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.telegram-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #0088cc, #0066aa);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(0, 136, 204, 0);
    }
}

.modal-title {
    font-size: var(--text-2xl);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    font-weight: 700;
}

.modal-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.stat-box {
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-box .stat-number {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-1);
}

.stat-box .stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.modal-features {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
    text-align: left;
}

.modal-features h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

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

.features-list li {
    padding: var(--space-2) 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
}

.features-list li::before {
    content: "✅";
    font-size: var(--text-base);
}

.modal-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.telegram-btn {
    background: linear-gradient(45deg, #0088cc, #0066aa);
    color: white;
    border: none;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-xl);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.later-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    cursor: pointer;
    transition: var(--transition-fast);
}

.later-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(45deg, var(--secondary-color), #27ae60);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.modal-footer {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
}

/* Comments Section */
.engagement-section {
    margin-top: var(--space-8);
    padding: var(--space-8);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.comments-widget h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    font-size: var(--text-xl);
    font-weight: 600;
}

.comments-list {
    margin-bottom: var(--space-8);
}

.comment {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-4);
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-time {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-2);
}

.comment-actions {
    display: flex;
    gap: var(--space-4);
}

.comment-like,
.comment-reply {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--text-sm);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.comment-like:hover,
.comment-reply:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.add-comment {
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-6);
}

.add-comment textarea {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: var(--text-base);
    resize: vertical;
    margin-bottom: var(--space-4);
    transition: var(--transition-fast);
}

.add-comment textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .header-stats {
        gap: var(--space-4);
    }

    .nav-tabs-content {
        gap: var(--space-4);
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .section-actions {
        width: 100%;
        justify-content: space-between;
    }

    .date-info {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: var(--space-6);
        margin: var(--space-4);
    }

    .modal-title {
        font-size: var(--text-xl);
    }

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

    .telegram-btn,
    .later-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .modal-stats {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .telegram-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-3xl);
    }
}
