/* Modern CSS for Johor Chess Association (JCA) Custom CMS Website */
/* Aesthetic: Premium Minimalist, Corporate Sportive Interface */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: #f8fafc; /* Slate 50 */
    color: #0f172a; /* Slate 900 */
    line-height: 1.6;
}

/* CUSTOM STYLES & OVERRIDES FOR TAILWIND */

/* Sticky Header Backdrop blur */
.sticky-header {
    background-color: rgba(11, 26, 48, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Hero Overlay */
.hero-gradient {
    background: linear-gradient(to bottom, rgba(11, 26, 48, 0.25) 0%, rgba(15, 23, 42, 0.65) 100%);
}

/* Card Transitions */
.modern-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

/* Tables Styling */
.table-responsive-wrapper {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern th {
    background-color: #0b1a30;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
}

.table-modern td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background-color: #ffffff;
    transition: background-color 0.15s ease;
}

.table-modern tr:last-child td {
    border-bottom: none;
}

.table-modern tr:hover td {
    background-color: #f8fafc;
}

/* Buttons styling */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 0.375rem; /* rounded-md */
    transition: all 0.2s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

/* PDF Container Styles */
.pdf-container {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 550px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

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


/* Gutenberg custom adjustments for new design */
.wp-block-file {
    margin: 2.5rem 0;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.wp-block-file__embed {
    width: 100%;
    height: 75vh;
    min-height: 550px;
    display: block;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
}

.wp-block-file__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0d9488 !important; /* teal-600 */
    color: #ffffff !important;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem;
    text-decoration: none !important;
}

.wp-block-file__button:hover {
    background-color: #0f766e !important; /* teal-700 */
}

/* Hover States for Gens Una Sumus */
.gens-una-sumus-card {
    position: relative;
    min-height: 350px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.gens-una-sumus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 26, 48, 0.8);
    transition: background-color 0.4s ease;
    z-index: 1;
}

.gens-una-sumus-card:hover::before {
    background-color: rgba(11, 26, 48, 0.1);
}
