/* =========================================
   Strike Carrom Club - Stylesheet
   ========================================= */

:root {
    --primary: #43a4f3;
    --primary-hover: #d33429;
    --navy: #1b273d;
    --navy-light: #24344d;
    --dark: #151d2c;
    --darker: #0d121c;
    --gold: #d4af37;
    --light: #f4f5f7;
    --white: #ffffff;
    --gray: #8a94a6;
    --border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.icon-sm {
    color: var(--primary);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

h2 span {
    color: var(--primary);
}

.section-header {
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--navy);
}

.section-header .divider {
    height: 4px;
    width: 60px;
    background: var(--primary);
    margin: 1rem auto 0;
    position: relative;
    border-radius: 2px;
}

.section-header .divider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background: var(--gold);
    right: -30px;
    border-radius: 2px;
}

/* Icons */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    padding: 12px 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-slant {
    transform: skewX(-15deg);
    border-radius: 3px;
}

.btn-slant span {
    display: inline-block;
    transform: skewX(15deg);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--navy);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--white);
    transition: var(--transition);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--navy);
}

.btn-outline:hover::before {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--darker);
    color: var(--gray);
    font-size: 0.85rem;
    padding: 10px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.contact-info svg {
    color: var(--primary);
}

.social-links a {
    color: var(--gray);
    margin-left: 15px;
}

.social-links a:hover {
    color: var(--primary);
}

/* Header */
.header {
    background-color: var(--white);
    color: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid #e1e4e8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 120px;
    transition: height 0.3s ease;
}

.main-nav {
    justify-self: start;
}

.header-social {
    justify-self: end;
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-social a {
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 140px;
    width: auto;
    transition: height 0.3s ease;
    margin-top: 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.header.scrolled .header-inner {
    height: 80px;
}

.header.scrolled .logo img {
    height: 70px;
    margin-top: 0;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--white);
}

.logo h1 span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--navy);
    position: relative;
    padding: 10px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-btn:hover {
    background-color: var(--border);
    color: var(--primary);
}

.cart-btn .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--navy);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(21, 29, 44, 0.95) 0%, rgba(21, 29, 44, 0.7) 40%, rgba(21, 29, 44, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text-box {
    max-width: 650px;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-left: 4px solid var(--primary);
}

.hero-title {
    color: var(--white);
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-desc {
    color: var(--gray);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* News Ticker */
.news-ticker {
    display: flex;
    background-color: var(--dark);
    border-bottom: 4px solid var(--primary);
    color: var(--white);
    overflow: hidden;
}

.ticker-label {
    background-color: var(--primary);
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-weight: 800;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.ticker-label::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    width: 30px;
    height: 100%;
    background-color: var(--primary);
    transform: skewX(-20deg);
    z-index: -1;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-track span {
    padding: 0 40px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Matches Section */
.matches-section {
    padding: 80px 0;
    background-image: linear-gradient(135deg, #f4f5f7 0%, #e8eaf0 100%);
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.match-card:hover::before {
    transform: scaleY(1);
}

.team {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 30%;
}

.team-home { justify-content: flex-end; text-align: right; }
.team-away { justify-content: flex-start; text-align: left; }

.team img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background-color: var(--dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.match-info {
    width: 40%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.match-date {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.match-vs {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--light);
    text-shadow: 1px 1px 0 #ccc, -1px -1px 0 #ccc, 1px -1px 0 #ccc, -1px 1px 0 #ccc;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    z-index: 0;
}

.match-venue {
    color: var(--gray);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Player Highlight */
.player-highlight {
    background-color: var(--navy);
    padding: 100px 0 0 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.player-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.05));
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.player-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.highlight-label {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.player-name {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
}

.player-name span {
    color: transparent;
    -webkit-text-stroke: 2px var(--white);
}

.player-bio {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.player-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-box {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 120px;
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--gray);
    font-weight: 600;
}

.player-image-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.player-img {
    position: relative;
    z-index: 2;
    max-height: 600px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.player-accent {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(40px);
    z-index: 1;
}

/* News Section */
.news-section {
    padding: 100px 0;
}

.news-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

.view-all:hover {
    color: var(--navy);
}

.news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.news-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 3px;
}

.news-content {
    padding: 30px;
}

.news-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: var(--gray);
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--navy);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--primary);
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item-small {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.news-item-small:hover {
    transform: translateX(-5px);
    border-left: 4px solid var(--primary);
}

.news-img-small {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.news-title-small {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-top: 5px;
}

/* Store Section */
.store-section {
    padding: 80px 0;
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: transparent;
}

.product-img-wrap {
    position: relative;
    background-color: #f8f9fa;
    padding: 30px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-wrap img {
    max-height: 180px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    color: var(--white);
    z-index: 2;
}

.badge.sale { background-color: var(--primary); }
.badge.new { background-color: var(--navy); }

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    text-align: center;
    transition: var(--transition);
    opacity: 0;
}

.product-card:hover .product-actions {
    bottom: 20px;
    opacity: 1;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-cat {
    color: var(--gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}

.old-price {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 1rem;
    margin-right: 10px;
}

.new-price {
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--darker);
    color: var(--gray);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
}

.footer-logo span {
    color: var(--primary);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    margin-right: 10px;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-widget h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
}

.links-widget ul li {
    margin-bottom: 12px;
}

.links-widget a {
    transition: var(--transition);
}

.links-widget a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-list svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    background-color: #0a0d14;
}

/* Responsive */
@media (max-width: 992px) {
    .match-card {
        flex-direction: column;
        gap: 20px;
    }
    
    .team {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .team-home { flex-direction: row-reverse; }
    
    .match-info {
        width: 100%;
    }
    
    .match-vs {
        display: none;
    }
    
    .player-grid {
        grid-template-columns: 1fr;
    }
    
    .player-info {
        padding-bottom: 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
    }
    
    .header-social {
        gap: 8px;
    }
    
    .header-social a {
        display: flex;
        width: 32px;
        height: 32px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .top-bar {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
