/* Ev Enerji Tasarrufu Akademisi - Main Styles */

:root {
    --primary-color: #1a7a5e;
    --secondary-color: #2d9d7f;
    --accent-color: #4ec4a3;
    --energy-green: #52c9a8;
    --energy-light: #e8f8f4;
    --text-dark: #1a3a2e;
    --text-light: #5a7a6e;
    --bg-light: #f0faf7;
    --bg-white: #ffffff;
    --border-color: #c8e6d9;
    --success-color: #2d9d7f;
    --warning-color: #e6a847;
    --shadow-soft: 0 4px 12px rgba(26, 122, 94, 0.08);
    --shadow-medium: 0 6px 20px rgba(26, 122, 94, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: white;
    padding: 1.8rem 0;
    box-shadow: var(--shadow-medium);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: visible;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
    position: relative;
}

@media (min-width: 769px) {
    header .container {
        flex-wrap: wrap;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
    font-weight: 500;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.main-nav a.active {
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    margin-top: 90px;
}

/* Typography */
h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.2rem;
    margin: 2.5rem 0 1.2rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.6rem;
    font-weight: 600;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--energy-green);
    border-radius: 2px;
}

h3 {
    font-size: 1.6rem;
    margin: 1.8rem 0 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    min-width: 600px;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

tr:hover {
    background-color: var(--energy-light);
}

tr:last-child td {
    border-bottom: none;
}

/* Cards */
.card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--energy-green) 100%);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.card:hover::before {
    transform: scaleY(1);
}

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--energy-green) 100%);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
    opacity: 0.8;
}

footer ul {
    list-style: none;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 3px solid var(--primary-color);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-settings {
    display: none;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--energy-light) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.cookie-settings.active {
    display: block;
}

.cookie-setting-item {
    padding: 1.5rem;
    margin: 1rem 0;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.cookie-setting-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium);
}

.cookie-setting-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-setting-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    flex: 1;
    min-width: 150px;
}

.cookie-setting-description {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.cookie-settings-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.cookie-settings-actions .btn {
    width: 100%;
    max-width: 300px;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.cookie-toggle.active {
    background-color: var(--success-color);
}

.cookie-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cookie-toggle.active .cookie-toggle-slider {
    transform: translateX(26px);
}

.cookie-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Forms */
.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem 0;
}

form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--energy-light) 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--bg-white);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(78, 196, 163, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }
    
    header .container {
        gap: 1rem;
    }
    
    main {
        margin-top: 70px;
    }
    
    .logo {
        font-size: 1.2rem;
        flex: 1;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
        box-shadow: var(--shadow-medium);
        z-index: 999;
    }
    
    .main-nav.active {
        max-height: 500px;
        opacity: 1;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .main-nav a.active::after {
        display: none;
    }
    
    .main-nav a.active {
        background: rgba(255,255,255,0.25);
        border-left: 3px solid white;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    .form-container {
        margin: 2rem 0;
    }
    
    form {
        margin: 0 auto;
        padding: 1.5rem;
    }
    
    .table-wrapper {
        margin: 1rem 0;
    }
    
    .cookie-settings {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .cookie-setting-item {
        padding: 1rem;
        margin: 0.75rem 0;
    }
    
    .cookie-setting-content {
        gap: 0.5rem;
    }
    
    .cookie-setting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }
    
    .cookie-setting-title {
        width: 100%;
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .cookie-setting-description {
        font-size: 0.85rem;
        line-height: 1.5;
        word-wrap: break-word;
    }
    
    .cookie-toggle {
        width: 45px;
        height: 22px;
        align-self: flex-start;
    }
    
    .cookie-toggle-slider {
        width: 18px;
        height: 18px;
    }
    
    .cookie-toggle.active .cookie-toggle-slider {
        transform: translateX(23px);
    }
    
    .cookie-settings-actions {
        margin-top: 1rem;
        width: 100%;
    }
    
    .cookie-settings-actions .btn {
        width: 100%;
        max-width: none;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

/* Checklist */
.checklist {
    list-style: none;
    margin-left: 0;
}

.checklist li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.checklist li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.3rem;
    background: var(--energy-light);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Warning Box */
.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Success Box */
.success-box {
    background-color: #d4edda;
    border-left: 4px solid var(--success-color);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Article Template */
.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Room Template */
.room-section {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--energy-light) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s;
}

.room-section:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-medium);
}

/* Plan Template */
.plan-week {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--energy-light) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.plan-week::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.plan-week h3 {
    color: var(--accent-color);
    margin-top: 0;
    font-weight: 600;
}
