/* Option 2: Light gradient overlays with dark text for better readability */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Apply Atkinson Hyperlegible to all text elements */
body, 
button, 
input, 
select, 
textarea,
h1, h2, h3, h4, h5, h6,
.project-card,
.project-card h3,
.project-card p,
.visit-link {
    font-family: 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    line-height: 1.6;
    color: #333;
}

/* Navigation */
header {
    background-color: #2c3e50;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.03);
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo-container:hover .logo-img {
    border-color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-container:hover .logo-text {
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a:hover::after {
    width: 100%;
}

.dropdown-indicator {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transform-origin: center;
    transition: transform 0.2s ease;
    margin-top: -1px;
}

.dropdown:hover .dropdown-indicator {
    transform: rotate(45deg);
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #34495e;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    z-index: 1100;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: #ecf0f1;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #2c3e50;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content */
.main-content {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: calc(100vh - 150px);
    background-color: #f0f9ff;
}

.main-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    padding: 0 20px;
}

/* Buttons */
.cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Projects Section */
.projects {
    padding: 0 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section {
    padding: 0 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f0f9ff;
    border-top: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 0;
}

.about-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1rem;
    color: #1f2937;
}

.about-content ul {
    margin-left: 1.5rem;
}

/* Ensure in-page anchors scroll to a visible position below the fixed header */
#home,
#about,
#contact-section {
    scroll-margin-top: 110px;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Option 2: Light gradient overlays with dark text */
.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #1a202c;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.project-card:nth-child(1) {
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)), url('DNHQ-icon-v4.png');
}

.project-card:nth-child(2) {
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)), url('GSV%20Pug.png');
}

.project-card:nth-child(3) {
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)), url('GSW%20Pug.png');
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.05));
    z-index: 1;
}

.project-card:nth-child(1)::before {
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.08));
}

.project-card:nth-child(2)::before {
    background: linear-gradient(135deg, transparent, rgba(139, 92, 246, 0.08));
}

.project-card:nth-child(3)::before {
    background: linear-gradient(135deg, transparent, rgba(16, 185, 129, 0.08));
}

.project-card > * {
    position: relative;
    z-index: 2;
}

.project-card h3 {
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    padding: 0;
    color: #0f172a;
    font-weight: 700;
    min-height: 4rem;
    display: flex;
    align-items: flex-end;
    line-height: 1.2;
}

.project-card:nth-child(1) h3 {
    color: #1e3a8a;
}

.project-card:nth-child(2) h3 {
    color: #581c87;
}

.project-card:nth-child(3) h3 {
    color: #14532d;
}

.project-card p {
    margin: 0 0 1.5rem 0;
    padding: 0;
    color: #1f2937;
    flex-grow: 1;
    display: flex;
    align-items: center;
    min-height: 6rem;
    line-height: 1.6;
}

.visit-link {
    display: inline-block;
    font-weight: 600;
    transition: transform 0.2s ease;
    color: #3b82f6;
}

.project-card:nth-child(1) .visit-link {
    color: #1e40af;
}

.project-card:nth-child(2) .visit-link {
    color: #6b21a8;
}

.project-card:nth-child(3) .visit-link {
    color: #047857;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.project-card:hover .visit-link {
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.contact-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #fff;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.social-link {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.social-link i,
.social-link .social-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon {
    object-fit: contain;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Specific icon colors */
.social-link .fa-youtube { color: white; }
.social-link .fa-tiktok { color: #FF0050; }

.footer-bottom {
    background-color: #1a252f;
    padding: 1.5rem 2rem;
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* BetterBox standalone page styles */
.betterbox-header {
    position: static;
    width: auto;
    top: auto;
    background-color: transparent;
    color: #f9fafb;
    padding: 0;
    text-align: left;
    box-shadow: none;
}

.betterbox-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.betterbox-header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.betterbox-main {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 3rem;
    padding: 1.5rem 1.25rem 2.5rem;
    padding-top: 72px; /* account for fixed header with tighter spacing */
}

.betterbox-toolbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: #2c3e50;
    padding: 0.35rem 0;
    margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
    .betterbox-main {
        padding-top: 160px; /* allow for taller header on small screens */
    }

    .betterbox-toolbar {
        top: 150px;
    }

    .betterbox-toolbar-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .betterbox-controls-row {
        justify-content: flex-start;
    }
}

.betterbox-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.25rem 1.25rem 0.5rem;
}

.betterbox-title-block h1 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
}

.betterbox-controls-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.betterbox-toolbar .date-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.35);
}

.betterbox-toolbar .date-controls label {
    font-size: 0.85rem;
    color: #e5e7eb;
}

.betterbox-today-btn {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #60a5fa;
    background-color: #3b82f6;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.betterbox-today-btn:hover {
    background-color: #1e40af;
}

.betterbox-toggles {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #f9fafb;
}

.betterbox-toggles label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.betterbox-tabs-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.75rem;
    margin-bottom: 0;
}

.betterbox-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    padding: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.betterbox-tabs-links {
    margin-left: auto;
    font-size: 0.8rem;
    color: #111827;
    white-space: nowrap;
}

.betterbox-tabs-links a {
    color: inherit;
    text-decoration: none;
}

.betterbox-tabs-links a:hover {
    text-decoration: underline;
}

.betterbox-tab {
    border: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    background-color: #e5e7eb;
    color: #111827;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.betterbox-tab:hover {
    background-color: #f3f4f6;
}

.betterbox-tab--active {
    background-color: #f9fafb;
    color: #111827;
    font-weight: 600;
    border-color: #9ca3af;
}

.apribox-section-hidden {
    display: none !important;
}

.betterbox-controls {
    background-color: #e0f2fe;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.betterbox-controls .date-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.betterbox-controls button {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #60a5fa;
    background-color: #1d4ed8;
    color: #f9fafb;
    font-size: 0.9rem;
    cursor: pointer;
}

.betterbox-controls button:hover {
    background-color: #1e40af;
}

#current-date-label {
    font-weight: 600;
    color: #f9fafb;
}

#date-picker {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    font-size: 0.85rem;
    color: #0f172a;
}

#date-picker:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.betterbox-status {
    text-align: center;
    font-size: 0.9rem;
    color: #f9fafb;
    min-height: 1.2rem;
}

.betterbox-status--error {
    color: #b91c1c;
}

.betterbox-status-text {
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.betterbox-progress {
    width: 120px;
    height: 3px;
    margin: 0 auto;
    background-color: rgba(148, 163, 184, 0.35); /* slate-400 @ ~35% */
    border-radius: 999px;
    overflow: hidden;
}

.betterbox-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00b8b8, #3b82f6);
    border-radius: inherit;
}

.betterbox-date-label {
    font-size: 0.82rem;
    color: #e5e7eb;
    white-space: nowrap;
}

.betterbox-games {
    margin-bottom: 1.25rem;
}

.betterbox-games h2,
.betterbox-report h2 {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.betterbox-games-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.betterbox-games-dropdown label {
    font-size: 0.95rem;
    color: #f9fafb;
}

.betterbox-games-select {
    min-width: 260px;
    max-width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    font-size: 0.95rem;
    color: #0f172a;
}

.betterbox-games-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.report-frame-wrapper {
    border-radius: 0 0 0.75rem 0.75rem;
    border: 1px solid #cbd5e1;
    overflow: auto;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    background-color: #f9fafb;
}

/* Hide internal section headings inside embedded APRIBOX report; the toolbar tabs
 * act as the visible section labels on this page.
 */
.betterbox-main .section {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.betterbox-main .section > h2 {
	display: none;
}

/* BetterBox table styles to prevent player name overflow */
.betterbox-main .team-section {
    display: inline-block;
    width: 48%;
    vertical-align: top;
    margin: 1%;
}

.betterbox-main .team-section .player-name {
    max-width: 160px;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    padding-right: 8px;
}

.betterbox-main .team-section .player-name:hover {
    white-space: normal;
    word-wrap: break-word;
}

/* Center box score table headers */
.betterbox-main .box-score-table thead th {
    text-align: center;
}

/* Apply ellipsis to all table cells to prevent overflow */
.betterbox-main td,
.betterbox-main th {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.betterbox-main td:hover,
.betterbox-main th:hover {
    white-space: normal;
    word-wrap: break-word;
}

/* Allow full lineup descriptions; rely on horizontal scrolling instead of ellipsis */
.betterbox-main .lineup-table th:nth-child(3),
.betterbox-main .lineup-table td:nth-child(3) {
    max-width: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

/* Special handling for player vs player matrix cells */
.betterbox-main .pvp-table td,
.betterbox-main .pvp-table th {
    max-width: 80px;
    text-align: center;
}

/* Special handling for teammate matrix cells */
.betterbox-main .teammate-block td,
.betterbox-main .teammate-block th {
    max-width: 90px;
    text-align: center;
}

.betterbox-main .teammate-block .diagonal-cell {
    background-color: #f0f0f0 !important;
    font-weight: bold;
}

/* Blips & Clips game-specific styles */
.blips-subtitle {
    color: #e5e7eb;
    font-size: 0.95rem;
}

.blips-clue-block {
    margin-top: 1.25rem;
}

.blips-clue-text {
    font-size: 1.75rem;
    line-height: 1.4;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.blips-guess-block {
    margin-top: 1.75rem;
    max-width: 720px;
}

#blips-guess-input {
    width: 100%;
    font-size: 1.4rem;
    padding: 0.75rem 0.9rem;
}

.blips-suggestions {
    margin-top: 0.35rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
    max-height: 220px;
    overflow-y: auto;
}

.blips-suggestions-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0.35rem 0.75rem 0.15rem;
}

.blips-suggestion {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.blips-suggestion:hover,
.blips-suggestion:focus {
    background-color: #eff6ff;
}

.blips-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    margin-top: 1rem;
}

.blips-main-column {
    flex: 2 1 0;
    min-width: 0;
}

.blips-sidebar {
    flex: 1 1 0;
    max-width: 320px;
}

#blips-user-status {
    color: #f9fafb;
}

.blips-high-score {
    padding: 0.1rem 0;
}

.blips-high-score--highlight {
    background-color: #fef3c7;
    border-radius: 0.25rem;
    padding: 0.1rem 0.35rem;
}

.blips-share-link {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.blips-share-link a {
    color: #0f766e;
    text-decoration: underline;
}
