/* Component-specific styles for WoW theme */

/* Standings Section */
.standings-section {
    margin: 2rem 0;
}

.standings-section h2 {
    color: var(--wow-gold) !important;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.standings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.standing-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, rgba(42, 34, 24, 0.9) 0%, rgba(26, 21, 16, 0.9) 100%);
    border: 1px solid var(--wow-border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.standing-item .rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wow-gold);
    width: 40px;
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.standing-item .rank.first { color: #ffd700; }
.standing-item .rank.second { color: #c0c0c0; }
.standing-item .rank.third { color: #cd7f32; }

.standing-item .officer-info {
    flex: 1;
    text-align: left;
    margin-left: 1rem;
}

.standing-item .officer-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.standing-item .officer-class {
    font-size: 0.8rem;
    opacity: 0.8;
    color: var(--wow-text-muted) !important;
}

.standing-item .vote-count {
    font-size: 1.2rem;
    color: var(--wow-text-muted) !important;
}

.standing-item .progress-bg {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.2) 0%, transparent 100%);
    z-index: 0;
    transition: width 0.5s ease;
}

.standing-item > * {
    position: relative;
    z-index: 1;
}

/* Results Container */
.results-container h2 {
    color: var(--wow-green) !important;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vote-info {
    color: var(--wow-text-muted) !important;
    margin-bottom: 2rem;
    font-style: italic;
}

.results-container h3 {
    color: var(--wow-gold) !important;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.result-item {
    background: linear-gradient(180deg, rgba(42, 34, 24, 0.95) 0%, rgba(26, 21, 16, 0.95) 100%);
    border: 1px solid var(--wow-border);
    border-radius: 4px;
    padding: 1rem 1.25rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.result-header .officer-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.vote-count {
    color: var(--wow-text-muted) !important;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: var(--wow-bg-darker);
    border: 1px solid var(--wow-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wow-gold-dark) 0%, var(--wow-gold) 50%, var(--wow-gold-dark) 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.total-votes {
    margin-top: 1.5rem;
    color: var(--wow-text-muted) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Officer Voting Cards */
.officer-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(90deg, rgba(42, 34, 24, 0.9) 0%, rgba(26, 21, 16, 0.9) 100%);
    border: 2px solid var(--rz-border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.officer-card:hover {
    border-color: var(--rz-primary);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
    transform: translateY(-2px);
}

.officer-card.selected {
    border-color: var(--rz-primary);
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.2) 0%, rgba(139, 105, 20, 0.2) 100%);
    box-shadow: 0 0 25px rgba(201, 162, 39, 0.4);
}

.officer-card .class-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(42, 34, 24, 0.9) 0%, rgba(26, 21, 16, 0.9) 100%);
    border: 2px solid var(--rz-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 10px currentColor;
    margin-right: 1rem;
}

.officer-card .officer-info {
    flex: 1;
}

.officer-card .officer-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.officer-card .officer-class {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.officer-card .select-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--rz-border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.officer-card.selected .select-indicator {
    background: var(--rz-primary);
    border-color: var(--rz-primary);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.officer-card.selected .select-indicator::after {
    content: '✓';
    color: var(--rz-content-background-color);
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
}

/* WoW Class Colors */
.class-warrior { color: #c79c6e !important; }
.class-paladin { color: #f58cba !important; }
.class-hunter { color: #abd473 !important; }
.class-rogue { color: #fff569 !important; }
.class-priest { color: #ffffff !important; }
.class-shaman { color: #0070de !important; }
.class-mage { color: #69ccf0 !important; }
.class-warlock { color: #9482c9 !important; }
.class-druid { color: #ff7d0a !important; }
.class-deathknight { color: #c41f3b !important; }
.class-monk { color: #00ff96 !important; }
.class-demonhunter { color: #a330c9 !important; }
.class-evoker { color: #33937f !important; }

/* Voting Section Redesign */
.voting-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.officers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1200px) {
    .officers-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        margin: 0 auto 3rem auto;
    }
}

@media (min-width: 1600px) {
    .officers-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
    }
}

.vote-officer-card {
    position: relative;
    background: linear-gradient(135deg, rgba(42, 34, 24, 0.95) 0%, rgba(26, 21, 16, 0.95) 100%);
    border: 2px solid var(--rz-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    min-height: 180px;
}

.vote-officer-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, var(--rz-primary), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.vote-officer-card:hover::before {
    opacity: 0.7;
}

.vote-officer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(201, 162, 39, 0.3);
    border-color: var(--rz-primary);
}

.vote-officer-card.selected {
    border-color: var(--rz-primary);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15) 0%, rgba(139, 105, 20, 0.15) 100%);
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(201, 162, 39, 0.4);
}

.vote-officer-card.selected::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vote-officer-card.selected .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.officer-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem auto;
}

.officer-avatar .class-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(42, 34, 24, 0.9) 0%, rgba(26, 21, 16, 0.9) 100%);
    border: 3px solid var(--rz-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.6rem;
    text-shadow: 0 0 15px currentColor;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.vote-officer-card:hover .class-icon {
    border-color: var(--rz-primary);
    box-shadow: 0 0 25px rgba(201, 162, 39, 0.5);
    transform: scale(1.05);
}

.vote-officer-card.selected .class-icon {
    border-color: var(--rz-primary);
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.7);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2) 0%, rgba(139, 105, 20, 0.2) 100%);
}

.avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--rz-primary), transparent, var(--rz-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    animation: rotate 3s linear infinite;
}

.vote-officer-card.selected .avatar-ring {
    opacity: 0.8;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.officer-details {
    margin-bottom: 1rem;
}

.officer-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.officer-class {
    font-size: 1rem;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.officer-title {
    font-size: 0.85rem;
    color: var(--rz-primary);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vote-indicator {
    margin-top: 1rem;
}

.vote-circle {
    width: 24px;
    height: 24px;
    border: 2px solid var(--rz-border-color);
    border-radius: 50%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.vote-officer-card:hover .vote-circle {
    border-color: var(--rz-primary);
}

.vote-checkmark {
    width: 24px;
    height: 24px;
    background: var(--rz-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--rz-content-background-color);
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(201, 162, 39, 0.5);
    animation: checkmark-glow 2s ease-in-out infinite;
}

@keyframes checkmark-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(201, 162, 39, 0.5); }
    50% { box-shadow: 0 0 25px rgba(201, 162, 39, 0.8); }
}

.vote-submit-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(42, 34, 24, 0.95) 0%, rgba(26, 21, 16, 0.95) 100%);
    border: 2px solid var(--rz-border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.vote-submit-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(201, 162, 39, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.selected-officer-preview {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .officers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vote-officer-card {
        padding: 1.5rem;
        min-height: 160px;
    }
    
    .officer-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .officer-avatar .class-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .officer-name {
        font-size: 1.2rem;
    }
}

/* Footer Styles */
.wow-footer {
    background: linear-gradient(180deg, #1a1510 0%, #0d0d0d 100%);
    border-top: 2px solid var(--rz-primary);
    padding: 3rem 0 1rem 0;
    margin: 2rem -2rem 0 -2rem;
    position: relative;
    width: calc(100% + 4rem);
}

.wow-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rz-primary), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.footer-section h6 {
    color: var(--rz-primary) !important;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.footer-links a:hover,
.footer-links .rz-link:hover {
    color: var(--rz-primary) !important;
    text-shadow: 0 0 5px rgba(201, 162, 39, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(74, 60, 40, 0.5);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Impressum Styles */
.impressum-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.impressum-container h1 {
    color: var(--rz-primary) !important;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.impressum-container h3, 
.impressum-container h4 {
    color: var(--rz-primary) !important;
    margin-bottom: 1rem;
}

.impressum-container ul {
    color: var(--rz-text-color);
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.impressum-container li {
    margin-bottom: 0.25rem;
}

.impressum-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rz-border-color);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .wow-footer {
        padding: 2rem 0 1rem 0;
        margin-top: 2rem;
    }
    
    .footer-content {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        padding: 0 1rem;
    }
    
    .impressum-container {
        padding: 1rem;
    }
}

/* Home Page Redesign */
.home-page {
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    background: transparent;
    border-bottom: 3px solid var(--rz-primary);
    margin-bottom: 2rem;
    overflow: hidden;
    box-sizing: border-box;
}


.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-height: 200px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.3));
    animation: hero-logo-glow 4s ease-in-out infinite;
}

@keyframes hero-logo-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.3)); }
    50% { filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.5)); }
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

/* Guild Info Section */
.guild-info-section {
    padding: 4rem 2rem;
    background: transparent;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    text-align: center;
    padding: 2rem !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--rz-border-color) !important;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(201, 162, 39, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: rotate(45deg);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(201, 162, 39, 0.2) !important;
    border-color: var(--rz-primary) !important;
}

.info-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.3));
}

/* Voting Section */
.voting-section-home {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(42, 34, 24, 0.3) 50%, transparent 100%);
}

.section-header {
    position: relative;
}

.cta-section {
    text-align: center;
    margin-top: 2rem;
}

.login-prompt {
    text-align: center;
    margin-top: 2rem;
}

/* Call to Action Bottom */
.cta-bottom-section {
    padding: 3rem 2rem;
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem !important;
    text-align: center;
    background: linear-gradient(135deg, rgba(42, 34, 24, 0.95) 0%, rgba(26, 21, 16, 0.95) 100%) !important;
    border: 2px solid var(--rz-border-color) !important;
    position: relative;
    overflow: hidden;
}

.cta-card::before,
.cta-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--rz-primary-dark);
}

.cta-card::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.cta-card::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
        margin: -2rem -1rem 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    .hero-logo {
        max-height: 150px;
        margin-bottom: 1.5rem;
    }
    
    .guild-info-section {
        padding: 3rem 1rem;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .voting-section-home {
        padding: 3rem 1rem;
    }
    
    .cta-bottom-section {
        padding: 2rem 1rem;
    }
    
    .cta-card {
        padding: 2rem !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0.5rem;
    }
    
    .hero-logo {
        max-height: 120px;
    }
    
    .info-cards-grid {
        gap: 1rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
}