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

/* Fix for Font Awesome CSS variable transform issue */
:root {
    --fa-rotate-angle: 0deg;
}

/* Override any Font Awesome transform that might use CSS variables incorrectly */
.fas[class*="fa-rotate"],
.fab[class*="fa-rotate"],
.far[class*="fa-rotate"] {
    transform: rotate(var(--fa-rotate-angle, 0deg)) !important;
}

/* Ensure proper rotation for Font Awesome spin animation */
.fas.fa-spin,
.fab.fa-spin,
.far.fa-spin {
    animation: fa-spin 1s linear infinite !important;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Ensure touch targets are large enough on mobile devices */
a, button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Navigation Bar Styles */
.navbar {
    background-color: #0C2340; /* Timberwolves Navy Blue */
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.team-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.team-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #236192; /* Timberwolves Light Blue */
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00BFFF;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00BFFF;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Hero Section Styles */
.hero {
    background: linear-gradient(rgba(12, 35, 64, 0.8), rgba(12, 35, 64, 0.9)), url('https://images.unsplash.com/photo-1504450758481-7338eba7524a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 150px 20px;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: #00BFFF;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #236192;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.4);
}

/* Team Introduction Styles */
.team-intro {
    padding: 80px 0;
    background-color: white;
}

.team-intro h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #0C2340;
    position: relative;
    padding-bottom: 15px;
}

.team-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #00BFFF;
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.intro-text {
    flex: 1;
    min-width: 300px;
    margin-right: 30px;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    margin-top: 30px;
}

.responsive-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.responsive-image:hover {
    transform: scale(1.02);
}

/* Team Roster Styles */
.team-roster {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.team-roster h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #0C2340;
    position: relative;
    padding-bottom: 15px;
}

.team-roster h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #00BFFF;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.player-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.player-image {
    background-color: #0C2340;
    padding: 20px;
    text-align: center;
}

.player-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.player-card:hover .player-photo {
    transform: scale(1.05);
}

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

.player-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #0C2340;
}

.player-position {
    font-size: 1.1rem;
    color: #00BFFF;
    margin-bottom: 10px;
    font-weight: 600;
}

.player-stats {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 500;
}

.player-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* Team Achievements Styles */
.team-achievements {
    padding: 80px 0;
    background-color: #0C2340;
    color: white;
}

.team-achievements h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.team-achievements h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #00BFFF;
}

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

.achievement-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.achievement-item i {
    font-size: 3rem;
    color: #00BFFF;
    margin-bottom: 20px;
}

.achievement-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.achievement-item p {
    font-size: 1rem;
    color: #ccc;
}

/* Subscription area styles */
.subscribe {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.subscribe h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0C2340;
}

.subscribe p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    min-width: 300px;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 50px 0 0 50px;
    outline: none;
    transition: border-color 0.3s ease;
}

.subscribe-form input:focus {
    border-color: #00BFFF;
}

.subscribe-form button {
    padding: 12px 30px;
    border-radius: 0 50px 50px 0;
    margin-left: -1px;
}

/* Footer Styles */
footer {
    background-color: #0C2340;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

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

.footer-team-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #00BFFF;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00BFFF;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #00BFFF;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .intro-text {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    /* Tablet adaptation for news page layout */
    .news-container {
        flex-direction: column;
    }
    
    .news-sidebar {
        flex: 1;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #0C2340;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
        text-align: center;
        width: 100%;
    }
    
    .nav-links a {
        width: 100%;
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 120px 15px;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    .subscribe-form input {
        border-radius: 50px;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .subscribe-form button {
        border-radius: 50px;
        margin-left: 0;
        width: 100%;
    }
    
    /* Tablet adaptation for content area */
    .team-intro h2,
    .team-roster h2,
    .team-achievements h2,
    .subscribe h2 {
        font-size: 2.2rem;
    }
    
    .intro-text p,
    .player-bio p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .team-intro h2,
    .team-roster h2,
    .team-achievements h2,
    .subscribe h2 {
        font-size: 1.8rem;
    }
    
    .achievement-item i {
        font-size: 2.5rem;
    }
    
    .btn-primary {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
    }
    
    /* Mobile footer layout */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo,
    .footer-links,
    .footer-social {
        width: 100%;
        margin-bottom: 20px;
        justify-content: center;
    }
    
    /* Mobile news page layout */
    .main-news-image {
        height: 250px;
    }
    
    .main-news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
    
    .news-excerpt {
        font-size: 1rem;
    }
    
    /* Fix touch targets on mobile devices */
    .social-icon {
        width: 44px;
        height: 44px;
    }
}

/* Additional adaptation for small screen mobile devices */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .team-logo {
        width: 35px;
        height: 35px;
    }
    
    .main-news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 1.3rem;
    }
}