/* =========================================
   1. GLOBAL & LAYOUT (Matches style.css)
   ========================================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
    background: #f4f7f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
}

.container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 90%;
    max-width: 460px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* =========================================
   2. TYPOGRAPHY & HEADER
   ========================================= */
h1 { 
    color: #1e293b; 
    font-size: 1.0rem; 
    margin-bottom: 0.5rem; 
    margin-top: 15px;
}

h2.date-label {
    color: #334155;
    font-size: 1.0rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.logo-container { 
    text-align: center; 
    margin-bottom: 30px; 
}

.main-logo { 
    max-width: 300px; 
    width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto; 
}

.subtitle {
    color: #64748b;
    /*font-weight: 200;*/
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

/* =========================================
   3. UTILITY BAR (Home Link)
   ========================================= */
.utility-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0 0 15px 0;
}

.top-chart-link {
    display: flex;
    align-items: center;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.top-chart-link:hover {
    color: #2980b9;
}

.chart-text {
    margin-left: 6px;
}

/* =========================================
   4. WEEKLY CARDS & LISTS
   ========================================= */
.chart-section {
    margin-top: 20px;
    text-align: left;
}

/* Card Container */
.week-archive-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.week-archive-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

/* Layout for Description + Button */
.content-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 400px) {
    .content-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.playlist-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    padding-right: 15px;
}

.playlist-desc strong {
    color: #1e293b;
}

/* =========================================
   5. BUTTONS (Updated to match Convert Button)
   ========================================= */
.sc-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    /* MATCHING GRADIENT FROM CONVERT BUTTON */
    background: linear-gradient(90deg, #2980b9 0%, #2ecc71 100%);
    color: white;
    
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    
    font-weight: 700; /* Increased weight to match Convert btn */
    font-size: 0.85rem;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.5px;
    
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    
    /* MATCHING SHADOW FROM CONVERT BUTTON */
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.2);
    flex-shrink: 0;
}

.sc-share-button:hover {
    /* MATCHING HOVER EFFECT */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.3);
}

.sc-share-button:active {
    transform: scale(0.98);
}

/* Success State (Solid Green) */
.sc-share-button.copied {
    background: #2ecc71; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* =========================================
   6. FOOTER
   ========================================= */
footer { 
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0; 
    font-size: 0.75rem; 
    color: #94a3b8;
}

footer p { margin: 0 0 10px 0; }