/* ============================================
   DOCUMENT HEADER
   ============================================ */

.document-header {
    text-align: center;
    margin-bottom: 50px;
}

.document-header h1 {
    font-size: 55px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #ffb300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.document-header p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
}

/* ============================================
   DOCUMENT GRID & CARD
   ============================================ */

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.document-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffb300, #ff6b00, #ffb300);
    opacity: 0;
    transition: opacity 0.4s;
}

.document-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 179, 0, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 179, 0, 0.1);
}

.document-card:hover::before {
    opacity: 1;
}

.document-content {
    padding: 28px;
}

.document-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.document-content > p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    font-size: 14.5px;
    margin-bottom: 4px;
}

/* ============================================
   MODERN DOCUMENT ACTION BUTTONS
   ============================================ */

.document-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.view-btn {
    flex: 1;
    min-width: 130px;
    padding: 13px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Shine effect on hover */
.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: left 0.6s ease;
    z-index: -1;
}

.view-btn:hover::before {
    left: 100%;
}

/* ---------- HTML VIEW BUTTON ---------- */

.view-btn.html-btn {
    background: linear-gradient(135deg, #ffb300 0%, #ff8a00 100%);
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 
        0 4px 14px rgba(255, 179, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.view-btn.html-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px rgba(255, 179, 0, 0.45),
        0 0 0 1px rgba(255, 179, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #111;
}

.view-btn.html-btn:active {
    transform: translateY(-1px);
}

/* ---------- PDF VIEW BUTTON ---------- */

.view-btn.pdf-btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.view-btn.pdf-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 179, 0, 0.5);
    color: #ffb300;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 179, 0, 0.3);
}

.view-btn.pdf-btn:active {
    transform: translateY(-1px);
}

/* PDF button ka icon color accent */
.view-btn.pdf-btn:hover {
    /* Icon glow effect */
    text-shadow: 0 0 12px rgba(255, 179, 0, 0.4);
}

/* ---------- DISABLED PDF BUTTON ---------- */

.view-btn.pdf-btn.disabled {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

.view-btn.pdf-btn.disabled::before {
    display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .document-header h1 {
        font-size: 38px;
    }

    .document-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .document-actions {
        flex-direction: column;
    }

    .view-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .document-card {
        border-radius: 20px;
    }

    .document-content {
        padding: 22px;
    }
}

/* ============================================
   OPTIONAL — Focus ring (accessibility)
   ============================================ */

.view-btn:focus-visible {
    outline: 2px solid #ffb300;
    outline-offset: 3px;
}

/* ============================================
   OPTIONAL — Reduced motion support
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .document-card,
    .view-btn {
        transition: none;
    }

    .view-btn::before {
        display: none;
    }
}

