/* DeNeefe Estates - Content Pages Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #2d3748;
    line-height: 1.6;
    padding: 2rem;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.header {
    /* Original bold gradient - commented out */
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */

    /* Lighter, subtle background that doesn't compete with content */
    background: 
        linear-gradient(135deg,
            hsla(229, 76%, 75%, 0.2) 0%,
            hsla(229, 76%, 95%, 0.5) 30%,
            hsla(229, 76%, 95%, 0.5) 70%,
            hsla(270, 37%, 75%, 0.2) 100%);
    

    /* background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); */
    color: #334155;
    padding: 1rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #cbd5e1;
    border-left: 1px solid rgb(102, 126, 234, 0.3);
    position:relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 8px;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: #1e293b;
}

.header .subtitle {
    font-size: 0.95rem;
    opacity: 0.7;
    font-weight: 300;
    color: #64748b;
}

.content {
    padding: 2rem;
}

.account-number {
    color: #334155;
    font-weight: 700;
}

/* Navigation Section */
.nav-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* Grid Layout for Navigation */
.nav-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.account-nav,
.quick-actions {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
}

.account-nav h3,
.quick-actions h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Anchor Links (for statements, etc.) */
.anchor-links,
.account-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    list-style: none;
}

.anchor-links li a,
.account-links li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.account-links {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.account-links li a {
    background: #f8fafc;
}

.anchor-links li a::before {
    content: '📄';
    margin-right: 0.75rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.account-links li a::before {
    content: '📊';
    margin-right: 0.75rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.anchor-links li a:hover,
.account-links li a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.anchor-links li a strong {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

.anchor-links li a:hover strong {
    background: rgba(255, 255, 255, 0.2);
}

/* Action Buttons */
.action-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.5rem;
    transition: all 0.15s ease-in-out;
}

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.action-button.secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.action-button.secondary:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

/* Section Dividers */
.section-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    text-align: center;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.section-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Statement/Account Sections */
.statement-section,
.account-section {
    margin: 3rem 0;
    padding: 0;
}

.statement-header,
.account-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    border-bottom: 3px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.statement-header h2,
.account-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.account-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.statement-content,
.account-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 1.5rem;
}

/* Document Grid Layout */
.document-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.document-grid+.document-grid {
    margin-top: 1.5rem;
}

.document-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.document-card-header {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.spacer {
    height: 1.5rem;
}

/*  List Notes */

.list-note-detail {
    padding: 2rem;
}

li {
    list-style-type: none;
    /* Removes the default bullet points */
}


/* PDF Containers */
.pdf-container {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
    height: 600px;
    position: relative;
}

.statement-content .pdf-container {
    background: #f9f9f9;
    border-radius: 6px;
}

.pdf-container object,
.pdf-container embed {
    width: 100%;
    height: 100%;
    border: none;
}

.document-card .pdf-container {
    height: 75vh;
}

.pdf-container {
    height: 75vh;
}

.document-grid .document-card .pdf-container {
    max-height: 48vh;
    /* Match the pdf-container height */
    width: 100%;
    object-fit: contain;
    overflow-y: auto;
    overflow-x: hidden;
}

.pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    padding: 2rem;
}

.pdf-fallback a {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.15s ease-in-out;
}

.pdf-fallback a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.pdf-fallback a::before {
    content: '📄';
    margin-right: 0.5rem;
}

/* Back to Top Links */
.back-to-top {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    transition: color 0.15s ease-in-out;
}

.back-to-top:hover {
    color: #4c51bf;
}

.back-to-top::before {
    content: '↑';
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Loading Animation */
/* Loading Animation - only show when PDF is actually loading */
.pdf-container::before {
    content: 'Loading PDF...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #64748b;
    font-size: 0.875rem;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.pdf-container.loaded::before {
    opacity: 0;
    pointer-events: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Highlight Target Sections */
.statement-section:target .statement-header,
.account-section:target .account-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: highlight-flash 0.8s ease-in-out;
}

@keyframes highlight-flash {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {

    /* Tablet adjustments */
    .pdf-container {
        height: 60vh;
    }

    .document-card .pdf-container {
        height: 60vh;
    }

    .document-grid .document-card .pdf-container {
        height: 45vh;
    }

    /* Ensure PDFs maintain aspect ratio on tablets */
    .pdf-container object,
    .pdf-container embed {
        object-fit: contain;
        object-position: top center;
    }

    /* Preserve text colors on tablet */
    .anchor-links li a,
    .account-links li a {
        color: #475569;
    }

    .anchor-links li a:hover,
    .account-links li a:hover {
        color: white;
    }

    .nav-title,
    .account-nav h3,
    .quick-actions h3 {
        color: #334155;
    }

    .statement-header h2,
    .account-header h2 {
        color: white;
    }

    .account-date {
        color: white;
    }

    /* Fix icon display on tablet */
    .anchor-links li a::before,
    .account-links li a::before {
        font-size: 1rem;
        flex-shrink: 0;
        min-width: 1.2em;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .content {
        padding: 1rem;
    }

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

    .anchor-links,
    .account-links {
        grid-template-columns: 1fr;
    }

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

    .header h1 {
        font-size: 1.5rem;
    }

    .statement-header,
    .account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Mobile PDF adjustments - prevent stretching */
    .pdf-container {
        height: 50vh;
        min-height: 400px;
    }

    .document-card .pdf-container {
        height: 50vh;
        min-height: 400px;
    }

    .document-grid .document-card .pdf-container {
        height: 50vh;
        min-height: 400px;
    }

    /* Force proper aspect ratio on mobile */
    .pdf-container object,
    .pdf-container embed {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: top center;
        max-width: 100%;
    }

    /* Preserve text colors on mobile */
    .anchor-links li a,
    .account-links li a {
        color: #475569;
    }

    .anchor-links li a:hover,
    .account-links li a:hover {
        color: white;
    }

    .nav-title,
    .account-nav h3,
    .quick-actions h3 {
        color: #334155;
    }

    .statement-header h2,
    .account-header h2 {
        color: white;
    }

    .account-date {
        color: white;
    }

    /* Fix icon display on mobile */
    .anchor-links li a::before,
    .account-links li a::before {
        font-size: 1rem;
        flex-shrink: 0;
        min-width: 1.2em;
        text-align: center;
        margin-right: 0.75rem;
    }
}

@media (max-width: 480px) {

    .anchor-links li a,
    .account-links li a {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        color: #475569;
    }

    .anchor-links li a:hover,
    .account-links li a:hover {
        color: white;
    }

    /* Small mobile - further PDF adjustments */
    .pdf-container {
        height: 45vh;
        min-height: 350px;
    }

    .document-card .pdf-container {
        height: 45vh;
        min-height: 350px;
    }

    .document-grid .document-card .pdf-container {
        height: 45vh;
        min-height: 350px;
    }

    /* Ensure no horizontal stretching on very small screens */
    .pdf-container {
        overflow: hidden;
    }

    .pdf-container object,
    .pdf-container embed {
        transform-origin: top center;
        object-fit: contain;
        object-position: top center;
    }

    /* Fix icon display on small mobile */
    .anchor-links li a::before,
    .account-links li a::before {
        font-size: 0.9rem;
        flex-shrink: 0;
        min-width: 1.1em;
        text-align: center;
        margin-right: 0.6rem;
    }
}