/* ataturk_corner.css — Atatürk köşesi stilleri */
/* Template: templates/data_manager/pages/ataturk_corner.html */

:root {
    --ataturk-crimson: #7a0010;
    --ataturk-crimson-light: #b3001e;
    --ataturk-gold: #d4af37;
    --ataturk-gold-glow: rgba(212, 175, 55, 0.4);
    --ataturk-bg: #050102;
    --ataturk-card-bg: rgba(25, 8, 11, 0.6);
    --ataturk-border: rgba(212, 175, 55, 0.2);
}

body {
    background-color: var(--ataturk-bg) !important;
    background-image: radial-gradient(circle at 50% 30%, #1a0206 0%, var(--ataturk-bg) 70%) !important;
}

.ataturk-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    padding: 4rem 1rem;
    background: radial-gradient(circle, rgba(122, 0, 16, 0.15) 0%, transparent 70%);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.05);
}

.hero-brand-group {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hero-brand-group .timeline-img-wrapper {
    width: 100%;
    margin: 0 auto 2.5rem auto;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    /* Soft golden glow effect and drop shadow */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.35);
    transition: all 0.3s ease;
}

.hero-brand-group .timeline-img-wrapper:hover {
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.95), 0 0 55px rgba(212, 175, 55, 0.55);
    border-color: rgba(212, 175, 55, 0.55);
}

.hero-title {
    font-family: 'Georgia', serif;
    font-size: clamp(1.5rem, 6.2vw, 3.2rem);
    font-weight: 700;
    color: var(--ataturk-gold);
    letter-spacing: 2px;
    margin-bottom: 0;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e0d0d0;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.signature-container {
    margin: 2rem auto;
    max-width: 250px;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.signature-container:hover {
    opacity: 1;
}

.signature-img {
    width: 100%;
    height: auto;
    filter: invert(72%) sepia(80%) saturate(300%) hue-rotate(5deg) brightness(97%) drop-shadow(0 0 10px rgba(212, 175, 55, 0.55));
}

.hero-quote {
    font-style: italic;
    font-size: 1.15rem;
    color: #d8c0c4;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    border-left: 3px solid var(--ataturk-gold);
    padding-left: 1.5rem;
    text-align: left;
}

/* Plaque / Gençliğe Hitabe */
.plaque-wrapper {
    perspective: 1000px;
    margin-bottom: 5rem;
}

.plaque {
    background: linear-gradient(135deg, #1f0407 0%, #0d0203 100%);
    border: 2px solid var(--ataturk-gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 25px rgba(122, 0, 16, 0.3), inset 0 0 20px rgba(212, 175, 55, 0.05);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.plaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, rgba(212, 175, 55, 0.05) 50%, transparent 55%);
    background-size: 200% 200%;
    animation: shine 6s infinite linear;
    pointer-events: none;
}

@keyframes shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.plaque-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plaque-header h3 {
    font-family: 'Georgia', serif;
    color: var(--ataturk-gold);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.plaque-header .subtitle {
    font-size: 0.9rem;
    color: #b5989b;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.plaque-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #f2e6e6;
    text-align: justify;
    text-justify: inter-word;
    font-weight: 300;
}

.plaque-content p {
    margin-bottom: 1.5rem;
    text-indent: 2rem;
}

.plaque-content p.signature-align {
    text-align: right;
    font-weight: bold;
    color: var(--ataturk-gold);
    margin-top: 2rem;
    text-indent: 0;
}

/* Quotes Slider Widget */
.quotes-widget {
    background: var(--ataturk-card-bg);
    border: 1px solid var(--ataturk-border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 6rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.quotes-title {
    color: var(--ataturk-gold);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.quote-slider-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-quote {
    display: none;
    animation: fadeEffect 0.8s ease-in-out;
}

.slider-quote.active {
    display: block;
}

@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slider-quote-text {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 1rem;
}

.slider-quote-category {
    font-size: 0.85rem;
    color: var(--ataturk-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--ataturk-border);
    color: var(--ataturk-gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slider-btn:hover {
    background: var(--ataturk-gold);
    color: #000000;
    box-shadow: 0 0 10px var(--ataturk-gold-glow);
    border-color: var(--ataturk-gold);
}

/* Vertical Chronological Timeline */
.timeline-title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-main-title {
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    color: var(--ataturk-gold);
    margin-bottom: 0.5rem;
}

.timeline-main-subtitle {
    color: #8da4be;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.timeline-container {
    position: relative;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Vertical line in center */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--ataturk-gold) 10%, var(--ataturk-gold) 90%, transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: transparent;
    width: 50%;
    box-sizing: border-box;
    z-index: 2;
    opacity: 0; /* Animated via intersection observer */
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

/* Timeline bullet dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--ataturk-bg);
    border: 3px solid var(--ataturk-gold);
    top: 25px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px var(--ataturk-gold-glow);
    transition: transform 0.3s;
}

.timeline-item.right::after {
    left: -8px;
}

.timeline-item:hover::after {
    transform: scale(1.3);
    background-color: var(--ataturk-gold);
}

/* Timeline card content */
.timeline-card {
    background: var(--ataturk-card-bg);
    border: 1px solid var(--ataturk-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

.timeline-card:hover {
    border-color: var(--ataturk-gold);
    box-shadow: 0 8px 30px rgba(122, 0, 16, 0.25), 0 0 10px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--ataturk-crimson) 0%, #4a000a 100%);
    color: var(--ataturk-gold);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid var(--ataturk-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.timeline-card h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.timeline-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #c4b0b3;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Image Wrapper */
.timeline-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    cursor: zoom-in;
    position: relative;
    background-color: transparent;
}

.timeline-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.timeline-img-wrapper:hover .timeline-img {
    transform: scale(1.08);
}

/* Overlay indicator */
.timeline-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(122, 0, 16, 0.2);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.timeline-img-wrapper:hover .timeline-img-overlay {
    opacity: 1;
}

.timeline-img-overlay i {
    color: var(--ataturk-gold);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* Responsive styling for Timeline and Mobile Layout */
@media screen and (max-width: 768px) {
    .ataturk-container {
        padding: 2rem 0.75rem;
    }

    .hero-section {
        padding: 2.5rem 0.5rem;
        margin-bottom: 3.5rem;
    }

    .hero-title {
        white-space: normal;
        font-size: clamp(1.4rem, 6.5vw, 2.2rem);
        line-height: 1.3;
        word-break: keep-all;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 2px;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .signature-container {
        max-width: 180px;
        margin: 1.5rem auto;
    }

    .hero-quote {
        font-size: 1rem;
        padding-left: 1rem;
    }

    .plaque {
        padding: 1.25rem 1rem;
    }

    .plaque-header h3 {
        font-size: 1.4rem;
    }

    .plaque-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .plaque-content p {
        text-indent: 1rem;
        margin-bottom: 1rem;
    }

    .plaque-content p.signature-align {
        margin-top: 1.5rem;
    }

    .quotes-widget {
        padding: 1.5rem 1rem;
        margin-bottom: 4rem;
    }

    .quotes-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .slider-quote-text {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .timeline-title-wrapper {
        margin-bottom: 2.5rem;
    }

    .timeline-main-title {
        font-size: 1.8rem;
    }

    .timeline-container::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 42px;
        padding-right: 5px;
    }

    .timeline-item.left, .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 12px !important;
        right: auto;
    }

    .timeline-card {
        padding: 1rem;
    }

    .timeline-card h4 {
        font-size: 1.15rem;
    }

    .timeline-card p {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .timeline-year {
        font-size: 0.95rem;
        padding: 3px 10px;
        margin-bottom: 0.75rem;
    }
}

/* Custom Lightbox Modal */
.ataturk-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(5, 1, 2, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ataturk-lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 10px 40px rgba(122, 0, 16, 0.3), 0 0 3px var(--ataturk-gold);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ataturk-lightbox.open .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--ataturk-border);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--ataturk-gold);
    color: #000000;
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    padding: 1.5rem;
    color: #f2e6e6;
    font-size: 0.95rem;
    text-align: center;
}
