/* PREMIUM PDF DOWNLOAD DESIGN */
/* Replace the ugly box with elegant floating design */

.resource-header {
    position: relative;
    padding-bottom: 40px;
}

/* Hide the old ugly download section */
.guide-info, .guide-meta {
    display: none !important;
}

/* Create elegant floating PDF option */
.premium-pdf-float {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    max-width: 280px;
}

.pdf-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,248,244,0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(196, 154, 60, 0.15);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(10, 31, 61, 0.08), 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(10, 31, 61, 0.12), 0 12px 35px rgba(0,0,0,0.08);
}

.pdf-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #c49a3c 0%, #d4af5c 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(196, 154, 60, 0.25);
}

.pdf-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.pdf-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: #0a1f3d;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pdf-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 18px;
    line-height: 1.4;
}

.pdf-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.premium-download-btn {
    width: 100%;
    background: linear-gradient(135deg, #0a1f3d 0%, #1a3258 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.premium-download-btn:hover {
    background: linear-gradient(135deg, #1a3258 0%, #2a4268 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(10, 31, 61, 0.15);
}

.premium-download-btn svg {
    width: 16px;
    height: 16px;
}

/* Minimize/Close functionality */
.pdf-minimize {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pdf-minimize:hover {
    background: rgba(0,0,0,0.05);
    color: #666;
}

/* Minimized state */
.pdf-card.minimized {
    padding: 16px;
    max-width: 200px;
}

.pdf-card.minimized .pdf-description,
.pdf-card.minimized .pdf-meta {
    display: none;
}

.pdf-card.minimized .pdf-title {
    font-size: 14px;
    margin-bottom: 12px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .premium-pdf-float {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        margin: 30px 20px 40px;
    }
    
    .pdf-card {
        margin: 0;
    }
}

/* Alternative: Header-integrated subtle version */
.header-pdf-option {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-pdf-option:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

.header-pdf-option svg {
    width: 14px;
    height: 14px;
}