/* ================================================
   ANTIQUE THEME - Dekorationen & Spezielle Sektionen
   ================================================ */

/* Basis-Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    background: linear-gradient(45deg, #f4f1e8, #e8dcc0);
    background-image: radial-gradient(circle at 20% 80%, rgba(139, 115, 85, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(139, 115, 85, 0.1) 0%, transparent 50%),
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23d4c4a8" opacity="0.3"/><circle cx="75" cy="75" r="0.3" fill="%23c4b49a" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Vintage Dekorationen */
.vintage-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.scroll-decoration {
    position: absolute;
    opacity: 0.2;
    filter: drop-shadow(2px 2px 4px rgba(93, 78, 55, 0.4));
    transform-style: preserve-3d;
}

.scroll-left {
    top: 15%;
    left: -20px;
    transform: rotate(-15deg) rotateY(10deg);
    animation: scrollFloat 8s ease-in-out infinite;
}

.scroll-right {
    top: 25%;
    right: -20px;
    transform: rotate(15deg) rotateY(-10deg);
    animation: scrollFloat 10s ease-in-out infinite reverse;
}

.coin-decoration {
    position: absolute;
    opacity: 0.25;
    filter: drop-shadow(3px 3px 6px rgba(93, 78, 55, 0.5));
    transform-style: preserve-3d;
}

.coin-1 {
    bottom: 20%;
    left: 5%;
    animation: coinSpin 20s linear infinite, coinFloat 6s ease-in-out infinite;
}

.coin-2 {
    top: 40%;
    right: 8%;
    animation: coinSpin 15s linear infinite reverse, coinFloat 8s ease-in-out infinite reverse;
}

.quill-decoration {
    position: absolute;
    top: 60%;
    right: 3%;
    opacity: 0.2;
    transform: rotate(25deg) rotateY(5deg);
    filter: drop-shadow(2px 2px 4px rgba(93, 78, 55, 0.4));
    animation: quillSway 12s ease-in-out infinite;
}

.compass-decoration {
    position: absolute;
    bottom: 30%;
    left: 2%;
    opacity: 0.18;
    filter: drop-shadow(3px 3px 6px rgba(93, 78, 55, 0.5));
    animation: compassRotate 30s linear infinite, compassFloat 7s ease-in-out infinite;
}

.key-decoration {
    position: absolute;
    opacity: 0.2;
    filter: drop-shadow(2px 2px 4px rgba(93, 78, 55, 0.4));
    transform-style: preserve-3d;
}

.key-1 {
    top: 70%;
    left: 8%;
    transform: rotate(25deg) rotateY(10deg);
    animation: keySwing 9s ease-in-out infinite;
}

.key-2 {
    top: 30%;
    left: 3%;
    transform: rotate(-20deg) rotateY(-10deg);
    animation: keySwing 11s ease-in-out infinite reverse;
}

.hourglass-decoration {
    position: absolute;
    top: 50%;
    left: 90%;
    opacity: 0.2;
    filter: drop-shadow(2px 2px 4px rgba(93, 78, 55, 0.4));
    animation: hourglassFloat 8s ease-in-out infinite, hourglassTilt 16s ease-in-out infinite;
}

/* Header & Main Container */
.antique-header {
    text-align: center;
    padding: 3rem 0 2rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card-number {
    font-family: 'Uncial Antiqua', serif;
    font-size: 3rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(93, 78, 55, 0.3);
    position: relative;
}

.card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
}

/* Section Titles */
.section-title {
    font-family: 'Uncial Antiqua', serif;
    font-size: 2.5rem;
    color: #5d4e37;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(93, 78, 55, 0.3);
    position: relative;
}

.title-decoration {
    color: #d4af37;
    font-size: 1.8rem;
    margin: 0 1rem;
}

/* Magic Section */
.magic-section {
    margin-bottom: 4rem;
}

.magic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.magic-card {
    background: linear-gradient(145deg, #f9f6f0, #f0e6d2);
    border: 2px solid #d4c4a8;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.magic-wax-seal {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 3;
}

.magic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.magic-card:hover::before {
    left: 100%;
}

.magic-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #d4af37;
}

.magic-icon-fallback {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: radial-gradient(circle, #d4af37, #b8941f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.magic-name {
    color: #5d4e37;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.magic-school {
    color: #8b7355;
    font-size: 0.9rem;
    font-style: italic;
}

/* Magic School Hover Effects */
.dunkel-hover:hover { box-shadow: 0 0 25px rgba(75, 0, 130, 0.6); }
.luft-hover:hover { box-shadow: 0 0 25px rgba(135, 206, 235, 0.6); }
.wasser-hover:hover { box-shadow: 0 0 25px rgba(65, 105, 225, 0.6); }
.seele-hover:hover { box-shadow: 0 0 25px rgba(138, 43, 226, 0.6); }
.flora-hover:hover { box-shadow: 0 0 25px rgba(34, 139, 34, 0.6); }
.fauna-hover:hover { box-shadow: 0 0 25px rgba(160, 82, 45, 0.6); }
.licht-hover:hover { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
.schmerz-hover:hover { box-shadow: 0 0 25px rgba(220, 20, 60, 0.6); }
.kunst-hover:hover { box-shadow: 0 0 25px rgba(255, 20, 147, 0.6); }
.geist-hover:hover { box-shadow: 0 0 25px rgba(106, 90, 205, 0.6); }
.feuer-hover:hover { box-shadow: 0 0 25px rgba(255, 69, 0, 0.6); }
.zeit-hover:hover { box-shadow: 0 0 25px rgba(128, 128, 128, 0.6); }
.mantik-hover:hover { box-shadow: 0 0 25px rgba(72, 61, 139, 0.6); }
.daemmerung-hover:hover { box-shadow: 0 0 25px rgba(139, 69, 19, 0.6); }

/* Guild Section */
.guild-section {
    margin-bottom: 4rem;
}

.guild-scroll {
    background: linear-gradient(145deg, #f4f1e8, #e8dcc0);
    border: 3px solid #8b7355;
    border-radius: 20px;
    padding: 2rem;
    overflow-x: auto;
}

.scroll-content {
    display: flex;
    gap: 2rem;
    min-width: max-content;
}

.guild-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.banner-pole {
    width: 8px;
    height: 50px;
    background: linear-gradient(to bottom, #8b4513, #654321);
    border-radius: 4px;
    margin-bottom: -10px;
    z-index: 1;
}

.banner-flag {
    background: linear-gradient(145deg, #f9f6f0, #f0e6d2);
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(93, 78, 55, 0.3);
    transition: transform 0.3s ease;
}

.banner-flag:hover {
    transform: scale(1.1) rotate(5deg);
}

.banner-flag img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    border-radius: 50%;
}

.guild-name {
    font-size: 0.9rem;
    color: #5d4e37;
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    margin-bottom: 4rem;
}

.stats-parchment {
    background: linear-gradient(145deg, #f9f6f0, #f0e6d2);
    border: 4px solid #8b7355;
    border-radius: 25px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 12px 24px rgba(93, 78, 55, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.parchment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #d4c4a8;
    padding-bottom: 1rem;
}

.stats-title {
    font-family: 'Uncial Antiqua', serif;
    font-size: 2.2rem;
    color: #5d4e37;
    margin: 0;
}

.seal-decoration {
    animation: rotate 30s linear infinite;
}

.stats-content {
    display: grid;
    gap: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #e8dcc0;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4af37, transparent, #d4af37);
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-number {
    font-family: 'MedievalSharp', cursive;
    font-size: 2.5rem;
    color: #d4af37;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(93, 78, 55, 0.3);
}

.stat-label {
    color: #5d4e37;
    font-weight: 600;
    font-size: 1rem;
}

/* Magic Distribution */
.magic-distribution {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #d4c4a8;
    border-radius: 15px;
    padding: 2rem;
}

.magic-distribution h3 {
    color: #5d4e37;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'MedievalSharp', cursive;
}

.distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.distribution-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.distribution-label {
    min-width: 100px;
    color: #5d4e37;
    font-weight: 600;
    font-size: 0.9rem;
}

.distribution-bar {
    flex: 1;
    height: 25px;
    background: #e8dcc0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid #d4c4a8;
}

.distribution-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #b8941f);
    border-radius: 12px;
    transition: width 1s ease;
    position: relative;
}

.distribution-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 2s ease-in-out infinite;
}

.distribution-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #5d4e37;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Recent Characters */
.recent-characters {
    margin-bottom: 4rem;
}

.character-scrolls {
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px);
    gap: 2rem;
    justify-content: center;
}

.character-scroll {
    background: linear-gradient(145deg, #f9f6f0, #f0e6d2);
    border: 3px solid #d4c4a8;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.character-scroll.companion-character {
    border: 3px solid #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.character-scrolls .card-link {
    display: block;
    width: 250px;
    text-decoration: none;
}

.character-scroll::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #b8941f, #d4af37);
}

.scroll-header {
    background: linear-gradient(145deg, #e8dcc0, #d4c4a8);
    padding: 1rem;
    text-align: center;
    border-bottom: 2px solid #c4b49a;
}

.character-seal {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #8b0000, #a52a2a);
    border: 3px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #d4af37;
    font-family: 'Uncial Antiqua', serif;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.scroll-body {
    padding: 1.5rem;
    text-align: center;
}

.scroll-body h4 {
    color: #5d4e37;
    margin-bottom: 1rem;
    font-family: 'MedievalSharp', cursive;
    text-align: center;
}

.scroll-body p {
    color: #6d5d47;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.scroll-body .badge {
    margin-top: 0.5rem;
}

.character-magic {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8dcc0;
}

.character-magic small {
    color: #8b7355;
    font-style: italic;
}

/* Zodiac Chart */
.zodiac-section {
    margin: 4rem auto;
    max-width: 700px;
    padding: 2rem;
}

.zodiac-chart-container {
    background: linear-gradient(135deg, #f5f5dc 0%, #fff8dc 100%);
    border: 3px solid #6e4b1f;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(110, 75, 31, 0.3);
}

.hover-card {
    font-size: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.8rem;
    }

    .main-title::before,
    .main-title::after {
        display: none;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .magic-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .parchment-header {
        flex-direction: column;
        gap: 1rem;
    }

    .main-container {
        padding: 0 1rem;
    }

    .vintage-decorations {
        display: none;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .character-scrolls {
        grid-template-columns: 1fr;
    }

    .stats-parchment {
        padding: 2rem;
    }
}
