/* New Homepage Styles */
body {
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.new-hero {
    position: relative;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.new-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    transform: translateY(-5vh); /* Adjusted position */
}

.hero-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    margin: 0 10px;
}

/* Main Content Layout */
.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    gap: 2rem;
    align-items: start;
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.sidebar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
    color: var(--text-primary);
}

/* Specific card styles */
.patch-notes-card-tab {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.patch-notes-content {
    flex: 1;
}

.patch-notes-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.patch-notes-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.patch-notes-visual img {
    max-width: 150px;
    border-radius: 0.5rem;
}

/* Redesigned Guide Grid */
.guide-grid-redesigned {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.guide-item-large, .guide-item-small {
    text-decoration: none;
    color: inherit;
    background: var(--card-bg-secondary);
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.guide-item-large:hover, .guide-item-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.guide-item-large img, .guide-item-small img {
    width: 100%;
    object-fit: cover;
}

.guide-item-large img {
    height: 12rem;
}

.guide-item-small img {
    height: 8rem;
}

.guide-item-content {
    padding: 1rem;
    flex-grow: 1;
}

.guide-item-content h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.guide-item-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Games Showcase Section */
#games-showcase {
    margin: 4rem 0;
    padding: 4rem 0;
    background: url('../images/maps/krakoa.jpg') no-repeat center center/cover;
    position: relative;
}

#games-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(16, 20, 28, 0.7), rgba(16, 20, 28, 0.9)), rgba(16, 20, 28, 0.8);
    backdrop-filter: blur(5px);
}

#games-showcase .container {
    position: relative;
    z-index: 1;
}

.showcase-title {
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.showcase-title span {
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.showcase-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background-color: var(--accent-blue);
}

.showcase-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.games-scroller {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
}

@media (min-width: 576px) {
    .games-scroller {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .games-scroller {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .games-scroller {
        grid-template-columns: repeat(4, 1fr);
    }
}

.game-card-container {
    perspective: 1000px;
}

.game-card {
    position: relative;
    height: 280px;
    border-radius: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background-color: var(--card-bg-secondary);
    transform-style: preserve-3d;
    display: flex;
    align-items: flex-end;

    --rotate-x: 0deg;
    --rotate-y: 0deg;
    transform: perspective(1000px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-card {
    background-size: cover;
    background-position: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 2px solid transparent;
    --glow-color: var(--accent-blue);
}

.game-card.is-hovered {
    transform: perspective(1000px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) scale(1.05) translateZ(20px);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 0 15px -2px var(--glow-color), 0 15px 25px rgba(0,0,0,0.3);
    border-color: var(--glow-color);
}

.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.5) 50%, transparent 100%);
    z-index: 2;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.game-card.is-hovered::after {
    opacity: 1;
}

.game-card-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    transform: translateY(30%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-card.is-hovered .game-card-content {
    transform: translateY(0);
}

.game-card-content h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    letter-spacing: 1px;
}

.game-card-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.1s;
}

.game-card.is-hovered .game-card-content p {
    opacity: 0.9;
    transform: translateY(0);
}

.play-now-btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    transition-delay: 0.2s;
}

.game-card.is-hovered .play-now-btn {
    opacity: 1;
    transform: translateY(0);
}

.play-now-btn:hover {
    background-color: #fff;
    color: var(--accent-blue);
}


/* Sidebar Styles */
.featured-character-card {
    text-align: center;
}

.featured-character-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--accent-blue);
    margin: 0 auto 1rem;
    display: block;
}

.featured-character-card h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.featured-character-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.25rem 0 1rem;
}

/* Quick Links in Sidebar */
.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-link-card {
    background: var(--card-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-color: var(--accent-blue);
}

.quick-link-icon svg {
    width: 36px;
    height: 36px;
    margin-bottom: 0.5rem;
}

.quick-link-card span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Spotlight Card */
.spotlight-card-redesigned {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--card-bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.spotlight-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-blue);
    flex-shrink: 0;
}

.spotlight-content h4 {
    margin-top: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
}

.spotlight-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .home-grid {
        grid-template-columns: 1fr; /* Stack main content and sidebar */
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .patch-notes-card-tab {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .guide-grid-redesigned {
        grid-template-columns: 1fr; /* Stack guide items */
    }
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    background-color: var(--body-bg);
    color: var(--text-secondary);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}
