/* ─── AkuaKültür Türkiye 2026 - Sertifika Oluşturucu ─── */

:root {
    /* Brand colors from logo */
    --primary: #0097a7;
    --primary-dark: #007888;
    --primary-light: #26c6da;
    --secondary: #29265b;
    --secondary-light: #3d3a78;
    --accent: #00bcd4;
    --bg-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --bg-body: #f0f6f8;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #5a6a7a;
    --border: #d0dce6;
    --shadow: 0 8px 32px rgba(0, 151, 167, 0.15);
    --shadow-lg: 0 16px 48px rgba(41, 38, 91, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
}

/* ─── Language Selector ─── */
.header-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.lang-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary);
    border-color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-name {
    letter-spacing: 0.3px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    color: var(--text-dark);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Header ─── */
.header {
    background: var(--bg-gradient);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.logo {
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo-img {
    max-width: 360px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

/* ─── Content ─── */
.content-wrapper {
    flex: 1;
    padding: 40px 0;
}

.main-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.card-header {
    background: linear-gradient(135deg, #f8fbfc 0%, #edf4f7 100%);
    padding: 30px 35px;
    border-bottom: 3px solid var(--primary);
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 120px;
    height: 3px;
    background: var(--secondary);
}

.card-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.card-header h2 i {
    color: var(--primary);
    margin-right: 8px;
}

.welcome-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.welcome-text p {
    margin-bottom: 6px;
}

.welcome-text strong {
    color: var(--secondary);
}

.site-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.site-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.site-link i {
    margin-right: 4px;
}

/* ─── Card Body ─── */
.card-body {
    padding: 35px;
}

.info-text {
    background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
    border: 1px solid #b2ebf2;
    border-left: 4px solid var(--primary);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
}

.info-text i {
    color: var(--primary);
    margin-right: 8px;
}

/* ─── Form ─── */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: #f8fbfc;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 151, 167, 0.12);
    background: var(--white);
}

.form-group input[type="text"]::placeholder {
    color: #a0b0c0;
}

/* ─── Buttons ─── */
.button-group {
    display: flex;
    gap: 16px;
    margin-top: 25px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.btn-primary {
    background: var(--bg-gradient);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 151, 167, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(0, 151, 167, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(41, 38, 91, 0.25);
}

.btn-secondary:hover {
    box-shadow: 0 6px 24px rgba(41, 38, 91, 0.4);
    transform: translateY(-2px);
}

/* ─── Live Preview ─── */
.live-preview {
    display: none;
    background: linear-gradient(135deg, #f8fbfc 0%, #f0f6f8 100%);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.live-preview h3 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.live-preview h3 i {
    color: var(--accent);
}

.live-preview img,
#live-preview-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* ─── Loading ─── */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--primary);
}

.loading i {
    font-size: 2.5rem;
    animation: spin 1s linear infinite;
    color: var(--primary);
}

.loading p {
    margin-top: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ─── Preview Container ─── */
.preview-container {
    display: none;
    margin-top: 30px;
    text-align: center;
}

.preview-container h3 {
    color: var(--secondary);
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.preview-container h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.preview-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
}

/* ─── Footer ─── */
.footer {
    background: var(--bg-gradient);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.footer-link {
    color: #80deea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ─── Template Selector ─── */
.template-selector {
    margin-bottom: 20px;
}

.template-selector label {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.template-selector select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background: #f8fbfc;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 15px 0;
    }

    .logo-img {
        max-width: 260px;
    }

    .card-header {
        padding: 20px;
    }

    .card-header h2 {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .content-wrapper {
        padding: 20px 0;
    }
}