/* 
    Shadowing Module Styles
    Design System: Glassmorphism, Modern Typography, Vibrant Gradients
*/

:root {
    --shadowing-primary: #6c5ce7;
    --shadowing-secondary: #a29bfe;
    --shadowing-bg: #f8faff;
    --shadowing-text: #2d3436;
    --shadowing-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

.shadowing-page {
    padding: 40px 0;
    min-height: 80vh;
    background: var(--shadowing-bg);
}

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

/* Shadowing Header Hero */
.shadowing-header-hero {
    background: var(--shadowing-gradient);
    padding: 60px 40px;
    border-radius: 40px;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
    position: relative;
    overflow: hidden;
}

.shadowing-header-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.shadowing-header-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Lang Selector Pills */
.lang-selector-pills {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none !important;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.lang-pill:hover, .lang-pill.active {
    background: white;
    color: var(--shadowing-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.lang-pill img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Topics Grid */
.shadowing-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.shadowing-topic-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none !important;
    color: var(--shadowing-text);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.shadowing-topic-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(108, 92, 231, 0.1);
    border-color: var(--shadowing-primary);
}

.topic-icon-box {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--shadowing-primary), var(--shadowing-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

.topic-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    user-select: none;
}

.shadowing-topic-card:hover .topic-icon-box {
    background: linear-gradient(135deg, #5b4bd4, #7c6fe0);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}


.topic-info h4 {
    margin: 0 0 5px 0;
    font-weight: 800;
    font-size: 1.25rem;
}

.topic-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.4;
}

.topic-arrow {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.shadowing-topic-card:hover .topic-arrow {
    background: var(--shadowing-primary);
    color: white;
    transform: translateX(5px);
}

/* Pack Grid */
.shadowing-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.pack-card-v2 {
    background: white;
    border-radius: 30px;
    padding: 35px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
}

.pack-card-v2:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(108, 92, 231, 0.12);
    border-color: var(--shadowing-primary);
}

.pack-icon-v2 {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #f0f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--shadowing-primary);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.pack-card-v2:hover .pack-icon-v2 {
    background: var(--shadowing-primary);
    color: white;
    transform: rotate(10deg);
}

.pack-title-v2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--shadowing-text);
}

.pack-desc-v2 {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.pack-footer-v2 {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--shadowing-primary);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #f9fafb;
}

.pack-card-link {
    text-decoration: none !important;
}

/* Practice View */
.shadowing-item-v2 {
    background: white;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.shadowing-item-v2.has-audio {
    cursor: pointer;
}

.shadowing-item-v2:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    border-color: rgba(108, 92, 231, 0.15);
}

.shadowing-item-v2.has-audio:hover .original-v2 {
    color: var(--shadowing-primary);
}

.item-play-zone .play-btn-v2 {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0f2ff;
    color: var(--shadowing-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-btn-v2:hover {
    background: var(--shadowing-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

/* Sequential number badge for items without audio */
.item-num-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--shadowing-primary), var(--shadowing-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
    user-select: none;
}


.play-btn-v2.playing {
    background: #e74c3c;
    color: white;
    animation: pulse 1.5s infinite;
}

.item-text-zone {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.original-v2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--shadowing-text);
}

.phonetic-v2 {
    font-size: 1rem;
    color: var(--shadowing-primary);
    font-style: italic;
    font-weight: 500;
}

.translation-v2 {
    font-size: 1.1rem;
    color: #6b7280;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Breadcrumb Navigation */
.section-header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-back-v2 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--shadowing-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-back-v2:hover {
    background: var(--shadowing-primary);
    color: white;
}

.nav-info-v2 h3 {
    font-weight: 800;
    margin: 0;
    font-size: 1.8rem;
}

.nav-info-v2 p {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 768px) {
    .shadowing-header-hero { padding: 40px 25px; border-radius: 30px; }
    .shadowing-header-hero h1 { font-size: 2.5rem; }
    .shadowing-topics-grid { grid-template-columns: 1fr; }
    .shadowing-item-v2 { flex-direction: column; gap: 15px; }
}

/* Premium Dual Play Buttons */
.item-play-zone {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.item-play-zone .play-btn-v2 {
    height: 48px;
    width: auto;
    padding: 0 20px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    gap: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-btn-v2.play-btn-orig {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.play-btn-v2.play-btn-orig:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.play-btn-v2.play-btn-trans {
    background: #fff1f2 !important;
    color: #db2777 !important;
    border: 1px solid rgba(219, 39, 119, 0.1) !important;
}

.play-btn-v2.play-btn-trans:hover {
    background: #db2777 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(219, 39, 119, 0.25) !important;
}

.play-btn-v2.playing {
    background: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3) !important;
}

