/* ===== Nike-Inspired Professional Layout ===== */

:root {
    --nike-black: #111;
    --nike-white: #fff;
    --nike-grey: #f5f5f5;
    --nike-grey-light: #fafafa;
    --nike-grey-dark: #757575;
    --nike-orange: #ff6900;
    --nike-blue: #0078d4;
    --nike-green: #00c851;
    --nike-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --nike-shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --nike-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nike-border-radius: 6px;
}

/* ===== Global Layout Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--nike-black);
    overflow-x: hidden;
}

/* ===== Full-Width Hero Section like Nike ===== */
.nike-hero-section {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nike-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.nike-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(17, 17, 17, 0.7) 0%,
        rgba(17, 17, 17, 0.3) 50%,
        rgba(17, 17, 17, 0.1) 100%
    );
    z-index: 2;
}

.nike-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--nike-white);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.nike-hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nike-hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== Nike-Style Buttons ===== */
.nike-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--nike-black);
    color: var(--nike-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--nike-border-radius);
    transition: var(--nike-transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.nike-btn:hover {
    background: #333;
    color: var(--nike-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--nike-shadow-hover);
}

.nike-btn-white {
    background: var(--nike-white);
    color: var(--nike-black);
}

.nike-btn-white:hover {
    background: var(--nike-grey);
    color: var(--nike-black);
}

.nike-btn-outline {
    background: transparent;
    color: var(--nike-white);
    border: 2px solid var(--nike-white);
}

.nike-btn-outline:hover {
    background: var(--nike-white);
    color: var(--nike-black);
}

/* ===== Full-Width Image Blocks like Nike ===== */
.nike-image-block {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.nike-image-block img {
    width: 100%;
    height: auto;
    min-height: 60vh;
    object-fit: cover;
    display: block;
}

.nike-image-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: var(--nike-white);
    max-width: 500px;
    z-index: 2;
}

.nike-image-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.nike-image-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== Grid Layout like Nike ===== */
.nike-grid {
    display: grid;
    gap: 0;
    margin-bottom: 0;
}

.nike-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.nike-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.nike-grid-item {
    position: relative;
    overflow: hidden;
    background: var(--nike-grey-light);
}

.nike-grid-item img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: var(--nike-transition);
}

.nike-grid-item:hover img {
    transform: scale(1.05);
}

.nike-grid-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: var(--nike-white);
}

.nike-grid-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.nike-grid-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* ===== Product Grid like Nike ===== */
.nike-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 60px 0;
}

.nike-product-card {
    background: var(--nike-white);
    border-radius: var(--nike-border-radius);
    overflow: hidden;
    transition: var(--nike-transition);
    position: relative;
}

.nike-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nike-shadow-hover);
}

.nike-product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--nike-transition);
}

.nike-product-card:hover .nike-product-image {
    transform: scale(1.05);
}

.nike-product-info {
    padding: 20px;
}

.nike-product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--nike-black);
}

.nike-product-category {
    color: var(--nike-grey-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.nike-product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--nike-black);
}

/* ===== Section Spacing like Nike ===== */
.nike-section {
    padding: 80px 0;
}

.nike-section-sm {
    padding: 40px 0;
}

.nike-section-lg {
    padding: 120px 0;
}

/* ===== Typography like Nike ===== */
.nike-heading-xl {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.nike-heading-lg {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.nike-heading-md {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.nike-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--nike-grey-dark);
}

/* ===== Utility Classes ===== */
.nike-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nike-text-center {
    text-align: center;
}

.nike-text-white {
    color: var(--nike-white) !important;
}

.nike-text-black {
    color: var(--nike-black) !important;
}

.nike-bg-grey {
    background: var(--nike-grey);
}

.nike-bg-black {
    background: var(--nike-black);
}

/* ===== Enhanced Responsive Design ===== */

/* Large Tablets and Small Laptops */
@media (max-width: 1200px) {
    .nike-container {
        max-width: 1000px;
    }
    
    .nike-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .nike-image-content {
        max-width: 450px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .nike-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .nike-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .nike-image-content {
        bottom: 40px;
        left: 40px;
        right: 40px;
        max-width: 400px;
    }
    
    .nike-grid-content {
        bottom: 30px;
        left: 30px;
        right: 30px;
    }
    
    .nike-hero-section {
        height: 80vh;
    }
    
    .nike-section {
        padding: 80px 0;
    }
}

/* Large Mobile Devices */
@media (max-width: 768px) {
    .nike-hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .nike-hero-content {
        padding: 0 30px;
    }
    
    .nike-hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 1.5rem;
    }
    
    .nike-hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.4rem);
        margin-bottom: 2rem;
    }
    
    .nike-image-content {
        bottom: 30px;
        left: 30px;
        right: 30px;
        max-width: none;
    }
    
    .nike-image-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .nike-image-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .nike-grid-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .nike-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 50px 0;
    }
    
    .nike-btn {
        padding: 14px 28px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .nike-hero-actions .nike-btn {
        display: block;
        width: 100%;
        margin: 0 0 15px 0 !important;
        text-align: center;
    }
    
    .nike-image-actions .nike-btn {
        display: block;
        width: 100%;
        margin: 0 0 15px 0 !important;
        text-align: center;
    }
    
    .nike-section {
        padding: 60px 0;
    }
    
    .nike-section-lg {
        padding: 80px 0;
    }
    
    /* Navigation buttons for mobile */
    .nike-slider-prev,
    .nike-slider-next {
        width: 50px !important;
        height: 50px !important;
        font-size: 18px;
    }
    
    .nike-slider-prev {
        left: 15px !important;
    }
    
    .nike-slider-next {
        right: 15px !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .nike-hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .nike-hero-content {
        padding: 0 20px;
    }
    
    .nike-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.2;
    }
    
    .nike-hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    
    .nike-image-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .nike-image-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.8rem;
    }
    
    .nike-image-text {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .nike-grid-content {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    
    .nike-product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 40px 0;
    }
    
    .nike-container {
        padding: 0 15px;
    }
    
    .nike-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    .nike-product-card {
        max-width: 100%;
    }
    
    .nike-product-image {
        height: 250px;
    }
    
    /* Smaller navigation buttons */
    .nike-slider-prev,
    .nike-slider-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px;
    }
    
    .nike-slider-prev {
        left: 10px !important;
    }
    
    .nike-slider-next {
        right: 10px !important;
    }
    
    .nike-slider-pagination {
        bottom: 20px !important;
    }
    
    /* Enhanced mobile product overlay */
    .nike-product-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(17,17,17,0.6) !important;
    }
    
    .nike-product-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .nike-product-actions .nike-btn {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        width: auto !important;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .nike-hero-title {
        font-size: 1.8rem;
    }
    
    .nike-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .nike-image-title {
        font-size: 1.4rem;
    }
    
    .nike-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .nike-container {
        padding: 0 10px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .nike-hero-section {
        height: 90vh;
    }
    
    .nike-hero-content {
        padding: 0 40px;
    }
    
    .nike-hero-actions .nike-btn {
        display: inline-block;
        width: auto;
        margin-right: 15px;
        margin-bottom: 0;
    }
}

/* High Resolution Displays */
@media (min-width: 1400px) {
    .nike-container {
        max-width: 1300px;
    }
    
    .nike-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 35px;
    }
    
    .nike-hero-title {
        font-size: 5.5rem;
    }
    
    .nike-hero-subtitle {
        font-size: 2rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nike-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.nike-slide-in {
    animation: slideInRight 0.8s ease-out;
}

/* ===== Hover Effects ===== */
.nike-hover-scale {
    transition: var(--nike-transition);
}

.nike-hover-scale:hover {
    transform: scale(1.02);
}

.nike-hover-lift {
    transition: var(--nike-transition);
}

.nike-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--nike-shadow-hover);
}

/* ===== Loading States ===== */
.nike-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.nike-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== Product Card Enhanced Hover Effects ===== */
.nike-product-card {
    cursor: pointer;
    position: relative;
}

.nike-product-card .nike-product-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nike-product-card:hover .nike-product-overlay {
    opacity: 1;
    visibility: visible;
}

/* ===== Button Loading Animation ===== */
@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.nike-btn:active {
    animation: buttonPulse 0.3s ease;
}

/* ===== Enhanced Image Block Overlay ===== */
.nike-image-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(17, 17, 17, 0.6) 0%,
        rgba(17, 17, 17, 0.2) 50%,
        rgba(17, 17, 17, 0.4) 100%
    );
    z-index: 1;
    transition: opacity 0.3s ease;
}

.nike-image-block:hover::before {
    opacity: 0.8;
}

.nike-image-content {
    z-index: 2;
}

/* ===== Focus States for Accessibility ===== */
.nike-btn:focus {
    outline: 2px solid var(--nike-blue);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .nike-image-block,
    .nike-hero-section {
        margin-left: 0;
        width: 100%;
    }
}

/* ===== High DPI Support ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nike-product-image,
    .nike-hero-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --nike-white: #1a1a1a;
        --nike-black: #fff;
        --nike-grey: #2a2a2a;
        --nike-grey-light: #1e1e1e;
        --nike-grey-dark: #999;
    }
}
