/* ===== CP ARMY LEAGUE - LOGO WITH TEXT & SCROLL EFFECT ===== */

/* Step 1: Style the container for logo + text */
.pt-header-inner .pt-logo .site-title a {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    text-decoration: none !important;
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Step 2: Add the logo as a background image */
.pt-header-inner .pt-logo .site-title a::before {
    content: "";
    display: inline-block;
    width: 100px;
    height: 100px;
    background-image: url('https://smarmyleague.org/wp-content/uploads/2025/08/smallemblem.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Step 3: Style the main title - ANIMATED GRAY GRADIENT */
.pt-header-inner .pt-logo .site-title a {
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 4rem !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    
    /* Gray gradient */
    background: linear-gradient(135deg, #ff0000 0%, #c40000 50%, #bdc3c7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    background-size: 200% 200% !important;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    
    /* Animation */
    animation: gradientFlow 3s ease infinite !important;
}

/* Step 4: Style the site description as tagline - DEFAULT POSITION */
.pt-header-inner .pt-logo .site-description {
    display: block !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
    font-size: 1.3rem !important;
    letter-spacing: 2px !important;
    color: #000000 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    opacity: 0.95;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.08) !important;
    line-height: 1.2 !important;
    /* Position properties removed - using default */
}

/* Step 5: Gradient animation */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Step 6: Hover effects */
.pt-header-inner .pt-logo .site-title a:hover {
    animation: gradientFlow 1.5s ease infinite !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.pt-header-inner .pt-logo .site-title a:hover + .site-description,
.pt-header-inner .pt-logo .site-description:hover {
    color: #7f8c8d !important;
    letter-spacing: 3px !important;
    transform: translateY(-1px) !important;
}

/* Step 7: Scroll effect */
@supports (animation-timeline: scroll()) {
    .pt-header {
        animation: shrink-header both;
        animation-timeline: scroll();
        animation-range: 0 120px;
    }
    
    .pt-header-inner .pt-logo .site-title a::before {
        animation: shrink-logo both;
        animation-timeline: scroll();
        animation-range: 0 120px;
    }
    
    .pt-header-inner .pt-logo .site-title a {
        animation: shrink-title both, gradientFlow 3s ease infinite !important;
        animation-timeline: scroll(), auto;
        animation-range: 0 120px, auto;
    }
    
    .pt-header-inner .pt-logo .site-description {
        animation: shrink-tagline both;
        animation-timeline: scroll();
        animation-range: 0 120px;
    }
    
    @keyframes shrink-header {
        0% { padding-top: 25px; padding-bottom: 25px; }
        100% { padding-top: 8px; padding-bottom: 8px; }
    }
    
    @keyframes shrink-logo {
        0% { width: 100px; height: 100px; }
        100% { width: 60px; height: 60px; }
    }
    
    @keyframes shrink-title {
        0% { font-size: 4rem !important; }
        100% { font-size: 2.2rem !important; }
    }
    
    @keyframes shrink-tagline {
        0% { 
            font-size: 1.3rem !important;
        }
        100% { 
            font-size: 1rem !important;
        }
    }
}

/* Step 8: Fallback for browsers without scroll animations */
@supports not (animation-timeline: scroll()) {
    .pt-header {
        padding: 15px 0;
    }
    
    .pt-header-inner .pt-logo .site-title a::before {
        width: 100px;
        height: 100px;
    }
    
    .pt-header-inner .pt-logo .site-title a {
        font-size: 4rem !important;
        animation: gradientFlow 3s ease infinite !important;
    }
    
    .pt-header-inner .pt-logo .site-description {
        font-size: 1.3rem !important;
    }
}

/* Step 9: Mobile responsive */
@media (max-width: 768px) {
    .pt-header-inner .pt-logo .site-title a {
        gap: 15px !important;
    }
    
    .pt-header-inner .pt-logo .site-title a::before {
        width: 70px;
        height: 70px;
    }
    
    .pt-header-inner .pt-logo .site-title a {
        font-size: 2.5rem !important;
        animation: gradientFlow 3s ease infinite !important;
    }
    
    .pt-header-inner .pt-logo .site-description {
        font-size: 1.1rem !important;
        letter-spacing: 1.5px !important;
    }
    
    @supports (animation-timeline: scroll()) {
        @keyframes shrink-logo {
            0% { width: 70px; height: 70px; }
            100% { width: 45px; height: 45px; }
        }
        
        @keyframes shrink-title {
            0% { font-size: 2.5rem !important; }
            100% { font-size: 1.6rem !important; }
        }
        
        @keyframes shrink-tagline {
            0% { 
                font-size: 1.1rem !important;
            }
            100% { 
                font-size: 0.85rem !important;
            }
        }
    }
}

/* Step 10: Very small screens */
@media (max-width: 480px) {
    .pt-header-inner .pt-logo .site-title a {
        gap: 12px !important;
    }
    
    .pt-header-inner .pt-logo .site-title a::before {
        width: 55px;
        height: 55px;
    }
    
    .pt-header-inner .pt-logo .site-title a {
        font-size: 2rem !important;
        animation: gradientFlow 3s ease infinite !important;
    }
    
    .pt-header-inner .pt-logo .site-description {
        font-size: 0.95rem !important;
        letter-spacing: 1.2px !important;
    }
}

/* Step 11: Remove the old pseudo-element tagline */
.pt-header-inner .pt-logo .site-title a::after {
    display: none !important;
}

/* Step 12: Ensure original styles don't interfere */
.pt-header-inner .pt-logo .site-title {
    font-weight: 800;
    text-transform: capitalize;
    color: #919191;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}


/* Sticky header styling (this appears when scrolling) */
#site-sticky-header.fixed .pt-header-inner {
    background-color: var(--pt-card-bg) !important; /* or #ffffff for white */
    box-shadow: 0px 2px 5px rgba(14, 14, 19, 0.05) !important;
}