/**
 * File: carnival.css
 *
 * Carnival Theme Extended Styles.
 * Decorations and specific carnival elements.
 *
 * @package     KuK Bendorf Theme
 * @author      Oliver Ferber <admin@kuk-bendorf.de>
 * @copyright   2024-2026 KuK Bendorf e.V.
 * @license     Proprietary
 * @version     1.0.0
 */

/* Narrenkappe Decorations */
.carnival-hero {
    position: relative;
    overflow: visible;
}

.carnival-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}

.narrenkappe {
    position: absolute;
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #FFD700 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    opacity: 0.9;
}

.narrenkappe::before {
    content: '🔔';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
}

.narrenkappe-left {
    top: 20px;
    left: -20px;
    transform: rotate(-15deg);
    animation: float 6s ease-in-out infinite;
}

.narrenkappe-right {
    top: 20px;
    right: -20px;
    transform: rotate(15deg) scaleX(-1);
    animation: float 8s ease-in-out infinite 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-15deg);
    }

    50% {
        transform: translateY(-20px) rotate(-12deg);
    }
}

/* Group Photo & Frame */
.group-photo-container {
    max-width: 800px;
    margin: 0 auto 30px;
}

.photo-frame {
    position: relative;
    padding: 15px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.carnival-frame {
    border: 5px solid var(--primary);
    background: linear-gradient(145deg, #ffffff, #faf5f5);
}

.carnival-frame::before,
.carnival-frame::after {
    content: '⭐';
    position: absolute;
    font-size: 30px;
    color: var(--accent);
    animation: sparkle 2s ease-in-out infinite;
}

.carnival-frame::before {
    top: -15px;
    left: -15px;
}

.carnival-frame::after {
    bottom: -15px;
    right: -15px;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

.group-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.frame-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border: 2px dashed rgba(242, 15, 15, 0.3);
    border-radius: var(--radius);
    pointer-events: none;
}

/* Social Links Grid */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.social-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: white;
}
.social-link-card:hover i,
.social-link-card:hover span,
.social-link-card:hover small {
    color: white;
}

.social-link-card i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.social-link-card.facebook {
    background: linear-gradient(135deg, #1877F2, #0d6efd);
}

.social-link-card.instagram {
    background: linear-gradient(135deg, #E1306C, #C13584, #833AB4);
}

.social-link-card.tiktok {
    background: linear-gradient(135deg, #000000, #ff0050);
}

/* Social Feed Container */
.social-feed-container {
    margin-top: 40px;
}

.feed-placeholder {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.feed-placeholder h3 {
    margin-top: 0;
    color: var(--primary);
}

.feed-placeholder ul {
    list-style: none;
    padding: 0;
}

.feed-placeholder code {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* Vorstandsbereich Dashboard */
.vorstand-login,
.access-denied {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
}

.user-greeting {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.dashboard-card h3 {
    margin: 15px 0 10px;
    color: var(--primary);
}

.dashboard-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.dashboard-card .btn {
    display: inline-block;
}

.vorstand-logout {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Timeline (for Chronik) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary);
    top: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 100px;
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(242, 15, 15, 0.3);
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 30px;
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary);
}

/* Membership Cards */
.membership-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.membership-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-5px);
}

.membership-card.highlighted {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.membership-card h3 {
    color: var(--primary);
    margin-top: 0;
}

.membership-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.membership-card .subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.membership-card ul {
    text-align: left;
    padding-left: 20px;
}

.membership-card ul li {
    margin-bottom: 8px;
}

.membership-application,
.membership-faq {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.or-text {
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    margin: 20px 0;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Values & Stats Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.value-card {
    text-align: center;
    padding: 30px;
}

.value-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.value-card h3 {
    color: var(--primary);
    margin: 10px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
}

/* Social Channels */
.social-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.social-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
}

.social-card .social-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.social-card.facebook .social-icon {
    color: #1877F2;
}

.social-card.instagram .social-icon {
    color: #E1306C;
}

.social-card.tiktok .social-icon {
    color: #000;
}

.social-card h3 {
    margin: 10px 0;
}

.social-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form-section {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form-placeholder {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
    border: 2px dashed #ccc;
    text-align: center;
}

.chronik-cta {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 40px;
}

/* Hero Slogan */
.hero-slogan {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-year {
        margin-left: 0;
        margin-bottom: 20px;
    }

    .timeline-content {
        margin: 0;
    }

    .social-channels,
    .dashboard-grid,
    .membership-types-grid {
        grid-template-columns: 1fr;
    }

    .narrenkappe {
        width: 50px;
        height: 60px;
    }
}