/* UX Improvements for RED SKULL Guild Website */

/* ===== Sticky Header ===== */
#main-header.sticky {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

/* ===== Tagline ===== */
.tagline-container {
    display: flex;
    align-items: center;
}

.logo-tagline {
    margin-left: 15px;
    border-left: 2px solid var(--color-red-primary);
    padding-left: 15px;
    line-height: 1.2;
}

.tagline-primary {
    font-weight: 700;
    color: var(--color-red-primary);
    font-size: 1.4rem;
    display: block;
}

.tagline-secondary {
    color: #ffffff;
    font-size: 1.2rem;
}

/* ===== Improved Typography ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4.8rem;
    font-weight: 800;
}

h2 {
    font-size: 3.6rem;
    font-weight: 700;
}

h3 {
    font-size: 2.4rem;
    font-weight: 700;
}

p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 700ch;
    text-align: justify;
}

.text-highlight {
    font-weight: 700;
    color: var(--color-red-primary);
}

/* ===== Enhanced Cards ===== */
.card {
    background-color: var(--color-dark-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    border: 1px solid rgba(196, 18, 18, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large), 0 0 15px rgba(196, 18, 18, 0.3);
    border-color: rgba(196, 18, 18, 0.3);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(196, 18, 18, 0.1);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(196, 18, 18, 0.1);
}

/* ===== Improved Buttons ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-red);
    color: white;
    border: 1px solid var(--color-red-secondary);
    box-shadow: var(--shadow-medium), 0 0 10px rgba(196, 18, 18, 0.5);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large), 0 0 15px rgba(196, 18, 18, 0.7);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-red-primary);
    border: 1px solid var(--color-red-primary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: rgba(196, 18, 18, 0.1);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.5rem 4rem;
    font-size: 1.8rem;
}

/* ===== Improved Navigation ===== */
.nav-group {
    display: flex;
    align-items: center;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background-color: var(--color-red-secondary);
    margin: 0 15px;
}

/* ===== Animated Progress Bar ===== */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progressShine 2s infinite;
}

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

/* ===== Improved Form Elements ===== */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--color-medium-gray);
    border: 1px solid var(--color-light-gray);
    border-radius: 4px;
    color: var(--color-text);
    transition: all var(--transition-medium);
}

.form-control:focus {
    border-color: var(--color-red-primary);
    box-shadow: 0 0 0 3px rgba(196, 18, 18, 0.2);
    outline: none;
}

.form-feedback {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 1.2rem;
    color: var(--color-red-bright);
}

/* ===== Testimonial Improvements ===== */
.testimonial-card {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-dark-gray);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    border: 1px solid rgba(196, 18, 18, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large), 0 0 15px rgba(196, 18, 18, 0.3);
}

.testimonial-content {
    position: relative;
    padding: 2rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 6rem;
    color: rgba(196, 18, 18, 0.2);
    font-family: serif;
    line-height: 1;
}

/* ===== Accessibility Improvements ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-red-primary);
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ===== Micro-interactions ===== */
.hover-scale {
    transition: transform var(--transition-medium);
}

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

.hover-glow {
    transition: box-shadow var(--transition-medium);
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(196, 18, 18, 0.5);
}

/* ===== Focus States ===== */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(196, 18, 18, 0.5);
    outline-offset: 2px;
}

/* ===== Improved CTA ===== */
.cta-primary {
    background: var(--gradient-red);
    color: white;
    font-size: 1.8rem;
    padding: 1.5rem 4rem;
    border-radius: 4px;
    box-shadow: var(--shadow-medium), 0 0 15px rgba(196, 18, 18, 0.5);
    transition: all var(--transition-medium);
    display: inline-block;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
    z-index: 1;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large), 0 0 20px rgba(196, 18, 18, 0.7);
}

/* ===== Social Proof ===== */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 4rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-value {
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--color-red-primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.6rem;
    color: var(--color-text);
    text-transform: uppercase;
}
