/*
Theme Name: Phantoms-hockey-theme
Author: Your Name
Version: 1.0
Description: Custom responsive hockey team theme.
*/
/* ===============================
   RESET
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #222;
}

/* ===============================
   TOP BLUE BAR
================================= */
.top-bar {
    background: #000032;
    height: 40px;
    width: 100%;
}

/* ===============================
   HEADER STRUCTURE
================================= */
.site-header {
    position: relative;
    width: 100%;
}

/* ===============================
   NAVIGATION BAR
================================= */
.main-navigation {
    background: #fe2d02;
    border-top: 6px solid #ffffff;
    border-bottom: 6px solid #ffffff;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
}

/* NAV CONTAINER */
.nav-container {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LEFT + RIGHT MENUS */
.nav-left,
.nav-right {
    width: 40%;
}

.nav-left ul,
.nav-right ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-left ul {
    justify-content: flex-end;
    gap: 30px;
}

.nav-right ul {
    justify-content: flex-start;
    gap: 30px;
}

.nav-left ul li a,
.nav-right ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-left ul li a:hover,
.nav-right ul li a:hover {
    opacity: 0.85;
}

/* ===============================
   CENTER LOGO (PROPER OVERLAP)
================================= */
.logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.logo-wrapper img {
    height: 150px;
    width: auto;
    max-width: 100%;
    display: block;
}

/* ===============================
   HERO SECTION
================================= */
.hero {
    background: url('images/hero.jpg') center center/cover no-repeat;
    color: #ffffff;
    padding: 180px 60px 140px 60px;
    position: relative;

    /* Vertical layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ============================= */
/* BLUE FADE BACKGROUND (TEXT)   */
/* ============================= */

.hero-text {
    position: relative;
    padding: 30px 40px;
    margin-bottom: 0;
    width: 100%;
    max-width: 800px;
    z-index: 1;
}

/* Blue fade */
.hero-text::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60px; /* match hero padding */
    right: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 50, 0.95) 0%,
        rgba(0, 0, 50, 0.85) 60%,
        rgba(0, 0, 50, 0) 100%
    );
    z-index: 0;
}

/* White fading borders */
.hero-text::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60px;
    right: 0;
    background:
        linear-gradient(to right, transparent, white 15%, white 85%, transparent) top,
        linear-gradient(to right, transparent, white 15%, white 85%, transparent) bottom;
    background-size: 100% 2px, 100% 2px;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

/* Ensure text sits above fades */
.hero-text h1,
.hero-text p {
    position: relative;
    z-index: 2;
}

/* ============================= */
/* HEADING + SUBTITLE            */
/* ============================= */

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 span {
    color: #fe2d02;
}

.hero p {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* ============================= */
/* ORANGE FADE BEHIND BUTTON     */
/* ============================= */

.hero-cta {
    position: relative;
    padding: 40px 40px;
    margin-top: -2px;
    width: 100%;
    max-width: 400px;
    z-index: 1;

    display: flex;
    align-items: center;   /* vertically center button */
}

.hero-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60px;
    right: 0;
    height: 80px;

    background: linear-gradient(
        90deg,
        rgba(254, 45, 2, 0.95) 0%,
        rgba(254, 45, 2, 0.75) 60%,
        rgba(254, 45, 2, 0) 100%
    );

    z-index: 0;
}

/* Button */
.hero .btn {
    position: relative;
    z-index: 2;
    display: inline-block;

    padding: 10px 26px;   /* smaller padding */
    font-size: 14px;      /* reduced size */
    letter-spacing: 0.5px;

    background: linear-gradient(to right, #000032, #00004d);
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;

    transition: 0.3s ease;
}

.hero .btn:hover {
    transform: translateY(-2px);
}
/* ============================= */
/* MOBILE                        */
/* ============================= */

@media (max-width: 768px) {

    .hero {
        padding: 120px 20px 80px 20px;
    }

    .hero-text::before,
    .hero-text::after,
    .hero-cta::before {
        left: -20px; /* match mobile padding */
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 14px;
    }
}
/* ===============================
   GENERAL SECTION LAYOUT
================================= */
.section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-3 {
    display: flex;
    gap: 40px;
}


/* ===============================
   CARDS (Latest / Game / Standings)
================================= */
.card {
    flex: 1;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Center Homepage Card Titles Only */
.section .card > h3,
.section .card > .card-title {
    text-align: center;
}

/* Blue title bar */
.card h3,
.card .widget-title {
    background: #000032;
    color: #ffffff;
    padding: 15px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card content */
.card p,
.card .widget {
    padding: 20px;
    font-size: 14px;
}

/* ===============================
   LATEST NEWS STYLE
================================= */

.latest-news {
    padding-bottom: 20px;
}

.latest-news h3 {
    background: #000032;
    color: #ffffff;
    padding: 15px;
    font-size: 18px;
    text-transform: uppercase;
}

.news-item {
    padding: 20px;
}

.news-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.news-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-content h4 a {
    text-decoration: none;
    color: #c20c0d;
}

.news-content h4 a:hover {
    text-decoration: underline;
}

.news-content p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    background: #c20c0d;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 13px;
}

.read-more:hover {
    opacity: 0.85;
}

/* ===============================
   FOOTER
================================= */

/* Red Top Bar */
.footer-top-bar {
    background: #fe2d02;
    height: 40px;
    border-bottom: 4px solid #ffffff;
}

/* Blue Main Section */
.footer-main {
    background: #0c2d5a;
    color: #ffffff;
    padding: 50px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

/* Footer Columns */
.footer-column {
    flex: 1;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Menus */
.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: #ffffff;
    font-size: 20px;
    transition: 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ===============================
   RESPONSIVE DESIGN
================================= */

@media (max-width: 1200px) {
    .nav-container {
        width: 95%;
    }
}

@media (max-width: 992px) {

    .nav-container {
        flex-direction: column;
        justify-content: center;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        text-align: center;
    }

    .nav-left ul,
    .nav-right ul {
        justify-content: center;
        margin: 10px 0;
        flex-wrap: wrap;
    }

    .logo-wrapper {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
        margin: 10px 0;
    }

    .home-sections {
        flex-direction: column;
    }

    .hero {
        padding: 120px 20px 80px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }
}

/* ===============================
   DROPDOWN MENU
================================= */

/* Parent LI needs positioning */
.menu-left li,
.menu-right li {
    position: relative;
}

/* Hide submenus by default */
.menu-left li .sub-menu,
.menu-right li .sub-menu {
    position: absolute;
    top: 100%;
    left: -50%;
    background: #fe2d02;
    list-style: none;
    min-width: 200px;
    padding: 15px 0;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 999;
}

/* Show on hover */
@media (min-width: 769px) {
    .menu-left li:hover > .sub-menu,
    .menu-right li:hover > .sub-menu {
        display: block;
    }
}

/* Submenu items */
.sub-menu li {
    padding: 8px 20px;
}

/* Submenu links */
.sub-menu li a {
    color: #ffffff;
    font-size: 15px;
	text-align: center;
    font-weight: 500;
    display: block;
    text-decoration: none;
}

/* Hover effect */
.sub-menu li a:hover {
    background: rgba(255,255,255,0.15);
}
/* ===============================
   NEXT GAME PANEL
================================= */

.next-game-card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Title Bar Like Other Panels */
.card-title {
    background: #0c2d5a;
    color: #ffffff;
    padding: 15px;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Inner Dark Section */
.next-game-inner {
    background: linear-gradient(180deg, #0c2d5a, #092144);
    color: #ffffff;
    padding: 25px 25px 35px 25px;
    text-align: center;
    flex-grow: 1;
}

/* Matchup Layout */
.matchup {
    margin-bottom: 20px;
}

.team-name {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vs {
    margin: 8px 0;
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 2px;
}

/* Game Date */
.game-date {
    font-size: 15px;
    margin: 20px 0;
    letter-spacing: 1px;
}

/* Countdown Label */
.countdown-label {
    margin: 15px 0 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Countdown Layout */
#countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
}
@media (max-width: 480px) {

    #countdown {
        gap: 15px;
    }

    .time-box span {
        font-size: 28px;
    }

    .team-name {
        font-size: 18px;
    }
}

.time-box {
    text-align: center;
}

.time-box span {
    display: block;
    font-size: 42px;
    font-weight: 800;
}

.time-box small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}
/* Divider*/
.divider {
    width: 90%;
    height: 2px;
    background: #ffffff;
    opacity: 0.3;
    margin: 20px auto;
}

/* ===============================
   LEAGUE STANDINGS TABLE
================================= */

.standings-wrapper {
    margin-top: 15px;
}

/* Key Row */
.standings-key {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    padding: 8px 15px;
    border-bottom: 2px solid #e5e5e5;
    color: #0c2d5a;
    letter-spacing: 1px;
}

.key-team {
    flex: 1;
    text-align: left;
}

.key-pts {
    width: 50px;
    text-align: right;
}

/* Team Rows */
.standing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
    background: #f8f9fb;
}

.standing-row:nth-child(even) {
    background: #ffffff;
}

.standing-team {
    flex: 1;
    font-weight: 600;
    color: #0c2d5a;
}

.standing-pts {
    width: 50px;
    text-align: right;
    font-weight: bold;
    color: #c20c0d;
}
/* ===============================
   MOBILE NAVIGATION
================================= */

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
}

/* Mobile Layout */
@media (max-width: 768px) {

    .main-navigation {
        height: auto;
        padding: 15px 0;
    }

    .nav-container {
        flex-direction: column;
    }

    .mobile-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 200;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        display: none;
    }

    .nav-left.active,
    .nav-right.active {
        display: block;
    }

    .nav-left ul,
    .nav-right ul {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .logo-wrapper img {
        height: 90px;
    }
}
@media (max-width: 480px) {

    .standings-key,
    .standing-row {
        font-size: 12px;
        padding: 8px 10px;
    }

    .standing-pts,
    .key-pts {
        width: 40px;
    }
}
/* =====================================
   MOBILE HOMEPAGE STACK ORDER FIX
===================================== */

@media (max-width: 1400px) {

    .grid-3 {
        display: flex !important;
        flex-direction: column !important;
    }

    .grid-3 > .card {
        width: 100% !important;
        margin-bottom: 25px;
    }

    .grid-3 > .next-game-card {
        order: 1 !important;
    }

    .grid-3 > .latest-news {
        order: 2 !important;
    }

    .grid-3 > .standings-card {
        order: 3 !important;
    }
}

/* =====================================
   ROSTER PLAYER CARDS
===================================== */
/* === PLAYER CARD GRID === */
.sp-player-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 30px;
	margin-top: 30px;
}

/* === PLAYER CARD === */
.sp-player-card {
	background: #efefef;
	border-radius: 14px;
	overflow: hidden;
	text-align: center;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	transition: transform .25s ease, box-shadow .25s ease;
}

.sp-player-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* === PLAYER IMAGE === */
.sp-player-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* === PLAYER META === */
.sp-player-meta {
	position: relative;
	padding: 22px 18px 24px;
}

/* === JERSEY NUMBER BADGE === */
.sp-player-number {
	position: absolute;
	top: -26px;
	left: 50%;
	transform: translateX(-50%);
	background: #000032; /* team color */
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 10px;
	box-shadow: 0 6px 14px rgba(0,0,0,.2);
}

/* === PLAYER NAME === */
.sp-player-name {
	margin: 28px 0 0;
	font-size: 20px;
	font-weight: 700;
}

.sp-player-name a {
	text-decoration: none;
	color: #111;
}

/* === MOBILE TWEAK === */
@media (max-width: 480px) {
	.sp-player-number {
		font-size: 22px;
		padding: 8px 14px;
	}
}
/* === POSITION TABS (CARD THEME STYLE) === */
.sp-position-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 18px;
	margin: 50px 0 45px;
	flex-wrap: wrap;
}

/* Individual tab */
.sp-position-links a {
	position: relative;
	padding: 12px 22px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	color: #444;
	background: #f4f7f8;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
	transition: all 0.25s ease;
}

/* Hover */
.sp-position-links a:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0,0,0,0.12);
	color: #000032;
}

/* Active tab */
.sp-position-links a.active {
	background: #000032;
	color: #fff;
	box-shadow: 0 10px 26px rgba(18,16,49,1);
}

/* Mobile spacing */
@media (max-width: 480px) {
	.sp-position-links {
		gap: 12px;
	}

	.sp-position-links a {
		padding: 10px 18px;
		font-size: 15px;
	}
}
/* =====================================
   FUTURE GAMES + SUBSCRIBE SECTION
===================================== */

.future-grid {
    display: flex;
    gap: 40px;
}

/* Left column larger */
.future-games {
    flex: 2;
}

/* Right column smaller */
.subscribe {
    flex: 1;
}

/* Future games layout */
.future-inner {
    padding: 25px;
}

.future-game {
    margin-bottom: 15px;
}

.future-date {
    font-weight: bold;
    color: #c20c0d;
    margin-bottom: 6px;
}

.future-match {
    font-size: 16px;
    color: #0c2d5a;
    font-weight: 600;
}

/* Subscribe */
.subscribe-inner {
    padding: 25px;
    text-align: center;
}

.subscribe-inner p {
    margin-bottom: 20px;
}

/* Form */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.subscribe-form button {
    background: #fe2d02;
    color: #fff;
    border: none;
    padding: 10px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
}

.subscribe-form button:hover {
    opacity: 0.85;
}

/* Mobile */
@media (max-width: 900px) {
    .future-grid {
        flex-direction: column;
    }
}
/* Reduce gap above Future Games section */
.future-subscribe {
    padding-top: 10px;
}
/* Future Game Home/Away Badge */
.game-location {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
    color: #fff;
    text-transform: uppercase;
}

.game-location.home {
    background: #0c2d5a; /* blue for home */
}

.game-location.away {
    background: #c20c0d; /* red for away */
}