/* Base Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --background-color: #f5f5f5;
    --text-color: #333333;
    --light-gray: #dddddd;
    --dark-gray: #666666;
    --white: #ffffff;
    --black: #000000;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-gray);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/static/images/herosthumbnails/college-sprint-track-field.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Section Headers */
section h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Shoe Grid */
.shoe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.shoe-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.shoe-card:hover {
    transform: translateY(-5px);
}

.shoe-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.shoe-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: var(--dark-gray);
}

.shoe-info {
    padding: 1.5rem;
}

.shoe-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.rating {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.buttons {
    display: flex;
    gap: 0.5rem;
}

/* Brand Grid */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.brand-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-card h3 {
    margin-bottom: 1rem;
}

/* Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guide-card {
    background-color: var(--white);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.guide-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.guide-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guide-card:hover .guide-thumbnail {
    transform: scale(1.05);
}

.guide-card h3 {
    margin: 1rem 1rem 0.5rem;
}

.guide-card p {
    margin: 0 1rem 1rem;
    color: var(--dark-gray);
}

.guide-card .btn {
    margin: 0 1rem 1.5rem;
    display: inline-block;
}

/* Commission Notice */
.commission-notice {
    font-style: italic;
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #0055aa;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
}

.btn-secondary:hover {
    background-color: #e65c00;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-orange {
    background-color: #ff6b35;
    color: white;
    border: 2px solid #ff6b35;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-orange:hover {
    background-color: #e55a2e;
    border-color: #e55a2e;
    color: white;
    text-decoration: none;
}

.cta-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
    margin: 15px 0;
}

.cta-buttons .btn {
    margin-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Shoe Detail Page */
.shoe-header {
    margin-bottom: 2rem;
}

.breadcrumbs {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.shoe-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .shoe-detail-grid {
        grid-template-columns: 1fr;
    }
}

.shoe-images {
    display: flex;
    flex-direction: column;
}

.main-image {
    height: 400px;
    width: 100%;
    object-fit: contain;
    background-color: #f9f9f9;
    margin-bottom: 1rem;
}

.placeholder-image.large {
    height: 400px;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
}

.placeholder-thumbnail {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
}

.shoe-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rating-box {
    text-align: center;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rating-box .rating {
    font-size: 2rem;
    color: var(--secondary-color);
}

.rating-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.price-box {
    text-align: center;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.price-box .price {
    font-size: 2rem;
    margin-bottom: 0;
}

.cta-buttons {
    text-align: center;
}

.key-features, .best-for {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.key-features ul, .best-for ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.key-features li, .best-for li {
    margin-bottom: 0.5rem;
}

.shoe-description {
    margin-bottom: 2rem;
}

.description-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

.pros, .cons {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pros h3 {
    color: var(--success-color);
}

.cons h3 {
    color: var(--danger-color);
}

.pros ul, .cons ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.pros li, .cons li {
    margin-bottom: 0.5rem;
}

.related-shoes-placeholder {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.placeholder-card {
    min-width: 250px;
    height: 300px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Admin Styles */
.admin-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.admin-sidebar ul li {
    margin-bottom: 0.75rem;
}

.admin-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.admin-table th {
    background-color: #f9f9f9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .shoe-grid, .brand-grid, .guide-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile hero with sky blue to ocean green gradient */
    .hero {
        background: linear-gradient(135deg, #87CEEB 0%, #20B2AA 100%) !important;
        background-attachment: fixed;
    }
    
    .hero h1 {
        font-size: 2rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .hero p {
        font-size: 1rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
}

/* Brand Header with Logo */
.brand-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.brand-logo {
    flex: 0 0 200px;
    max-width: 200px;
}

.brand-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-info {
    flex: 1;
}

@media (max-width: 768px) {
    .brand-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brand-logo {
        margin-bottom: 1rem;
    }
}

/* Guides Hero Section */
.guides-hero {
    margin-bottom: 2rem;
}

.guides-hero-content {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.guides-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guides-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.guides-hero-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.brand-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    margin-bottom: 1rem;
}

/* Technical Specifications Styling */
.shoe-description pre {
    font-family: inherit;
    white-space: pre-wrap;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Logo Styles */
.logo-image {
    max-height: 80px;
    width: auto;
    border-radius: 5px;
}

.footer-logo-image {
    max-height: 60px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.brand-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.brand-icon {
    height: 30px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.brand-icon:hover {
    opacity: 1;
}

/* Improved Framing */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.shoe-card, .brand-card, .guide-card, .event-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shoe-card:hover, .brand-card:hover, .guide-card:hover, .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.shoe-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    padding: 1rem;
}

.shoe-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.btn {
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Equipment Styles */
.equipment-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/static/images/herosthumbnails/track-equipment.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.equipment-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-link {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.equipment-category {
    margin-bottom: 3rem;
}

.equipment-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.equipment-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-5px);
}

.equipment-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.equipment-details {
    padding: 1.5rem;
}

.equipment-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.equipment-details p {
    margin-bottom: 1rem;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .logo-image {
        max-height: 50px;
    }
    
    /* Equipment Hero Mobile */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .equipment-nav {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    
    /* Larger buttons on mobile for better UX */
    .btn-large {
        padding: 18px 36px !important;
        font-size: 1.2rem !important;
        min-height: 60px;
        width: 100%;
        text-align: center;
    }
    
    .cta-buttons {
        margin: 20px 0;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    /* Equipment Grid Mobile */
    .equipment-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .equipment-item {
        margin: 0 1rem;
    }
    
    .equipment-details {
        padding: 1rem;
    }
    
    .equipment-details h3 {
        font-size: 1.1rem;
    }
    
    .equipment-details p {
        font-size: 0.9rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Very small screens */
    @media (max-width: 480px) {
        .hero-content h1 {
            font-size: 1.8rem;
        }
        
        .hero-subtitle {
            font-size: 1rem;
        }
        
        .equipment-nav {
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .nav-link {
            min-width: auto;
            width: 100%;
        }
        
        .equipment-item {
            margin: 0 0.5rem;
        }
    }
    
    header .container {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }
    
    nav {
        margin-top: 1rem;
    }
}
