/* MasterAI - Ana CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
    min-height: 100vh;
}

/* NAV */
nav {
    background: #111122;
    border-bottom: 2px solid #6c63ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo a {
    color: #6c63ff;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav ul li a:hover, nav ul li a.active {
    color: #6c63ff;
}

/* Projects Page Styles */
.projects-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: #1a1a2e;
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
    border-color: #6c63ff;
}

.project-card h3 {
    color: #6c63ff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.project-card p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.project-card .btn {
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s;
}

.project-card .btn:hover {
    background: linear-gradient(135deg, #7a72ff, #6c63ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.no-projects {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    margin: 60px 0;
}

nav ul li a:hover {
    color: #6c63ff;
}

/* HAMBURGER BUTON - masaüstünde gizli */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #6c63ff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.aktif span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.aktif span:nth-child(2) {
    opacity: 0;
}

.hamburger.aktif span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* MOBİL MENÜ */
.mobil-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0d0d1a;
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
}

.mobil-menu.aktif {
    display: flex;
}

.mobil-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid #6c63ff33;
    width: 100%;
    text-align: center;
    transition: color 0.2s;
}

.mobil-menu a:hover {
    color: #6c63ff;
}

.mobil-menu a:hover {
    background: #6c63ff;
    color: #fff;
}

/* HERO */
.hero {
    text-align: center;
    padding: 100px 20px 60px;
    background: linear-gradient(180deg, #111122 0%, #0a0a0f 100%);
}

.hero h1 {
    font-size: 3rem;
    color: #6c63ff;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 30px;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.container h1 {
    color: #6c63ff;
    margin-bottom: 24px;
    font-size: 2rem;
}

/* SUMMARY CARDS */
.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: #111122;
    border: 1px solid #6c63ff33;
    border-radius: 12px;
    padding: 24px;
}

.card h2 {
    color: #6c63ff;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.card p {
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.card p a {
    color: #ccc;
    text-decoration: none;
}

.card p a:hover {
    color: #6c63ff;
}

.big-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #6c63ff;
    margin-bottom: 12px;
}

/* BTN */
.btn {
    display: inline-block;
    background: #6c63ff;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn:hover { background: #574fd6; }
.btn.small { padding: 5px 12px; font-size: 0.8rem; margin: 2px; }
.btn.green { background: #27ae60; }
.btn.green:hover { background: #1e8449; }
.btn.red { background: #c0392b; }
.btn.red:hover { background: #a93226; }
.btn.orange { background: #e67e22; }
.btn.orange:hover { background: #ca6f1e; }

/* TABS */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 20px;
    border-radius: 8px;
    background: #1a1a2e;
    color: #ccc;
    text-decoration: none;
    transition: background 0.2s;
}

.tab.active, .tab:hover {
    background: #6c63ff;
    color: #fff;
}

/* NEWS */
.news-item {
    background: #111122;
    border: 1px solid #6c63ff22;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.news-item h2 {
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.news-item small {
    color: #888;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 12px;
}

.news-item p {
    color: #ccc;
    line-height: 1.7;
}

/* TOOLS */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    background: #111122;
    border: 1px solid #6c63ff33;
    border-radius: 12px;
    padding: 24px;
}

.tool-card h2 {
    color: #6c63ff;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.tool-card .date {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.tool-card p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* FORM */
.form-page {
    max-width: 480px;
}

.form-box {
    background: #111122;
    border: 1px solid #6c63ff33;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.form-box h2 {
    color: #6c63ff;
    margin-bottom: 16px;
}

form label {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 14px;
    margin-bottom: 4px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form input[type="url"],
form select,
form textarea {
    width: 100%;
    padding: 10px 14px;
    background: #1a1a2e;
    border: 1px solid #6c63ff44;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #6c63ff;
}

form input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 14px;
}

form p {
    color: #aaa;
    margin-top: 14px;
    font-size: 0.9rem;
}

form p a {
    color: #6c63ff;
    text-decoration: none;
}

/* ALERT */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.alert.error {
    background: #3b1010;
    border: 1px solid #c0392b;
    color: #e74c3c;
}

.alert.success {
    background: #0d2e1a;
    border: 1px solid #27ae60;
    color: #2ecc71;
}

/* BADGE */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge.green { background: #0d2e1a; color: #2ecc71; }
.badge.red   { background: #3b1010; color: #e74c3c; }

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    background: #111122;
    border-radius: 12px;
    overflow: hidden;
}

thead tr {
    background: #1a1a2e;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid #6c63ff11;
}

th {
    color: #6c63ff;
    font-weight: 600;
}

td {
    color: #ccc;
}

tbody tr:hover {
    background: #1a1a2e;
}

/* CHATBOT */
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: #6c63ff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(108,99,255,0.6);
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

#chatbot-toggle:hover { background: #574fd6; transform: scale(1.1); }

#chatbot-toggle svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

#chatbot-toggle span { display: none; }

#chatbot-box {
    position: fixed;
    bottom: 82px;
    right: 20px;
    width: 310px;
    max-height: 440px;
    background: #111122;
    border: 1px solid #6c63ff44;
    border-radius: 14px;
    display: none;
    flex-direction: column;
    z-index: 9998;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    overflow: hidden;
}

#chatbot-box.acik { display: flex; }

#chatbot-header {
    background: #6c63ff;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

#chatbot-header span { flex: 1; }

#chatbot-kapat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

#chatbot-mesajlar {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-msg {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}

.cb-msg.bot {
    background: #1a1a2e;
    color: #e0e0e0;
    align-self: flex-start;
}

.cb-msg.user {
    background: #6c63ff;
    color: #fff;
    align-self: flex-end;
}

#chatbot-form {
    display: flex;
    border-top: 1px solid #6c63ff22;
    padding: 10px;
    gap: 8px;
}

#chatbot-input {
    flex: 1;
    background: #1a1a2e;
    border: 1px solid #6c63ff44;
    border-radius: 8px;
    color: #e0e0e0;
    padding: 8px 12px;
    font-size: 0.88rem;
    outline: none;
}

#chatbot-input:focus { border-color: #6c63ff; }

#chatbot-gonder {
    background: #6c63ff;
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.2s;
}

#chatbot-gonder:hover { background: #574fd6; }

@media (max-width: 480px) {
    #chatbot-box {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 78px;
    }
    #chatbot-toggle {
        bottom: 16px;
        right: 16px;
    }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 24px;
    color: #444;
    font-size: 0.85rem;
    border-top: 1px solid #6c63ff22;
    margin-top: 60px;
}

/* AI GÖRSELLER & VİDEOLAR */
.ai-gorseller {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.ai-gorseller h2 {
    color: #6c63ff;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.resim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 50px;
}

.resim-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #6c63ff33;
    transition: transform 0.2s;
}

.resim-grid img:hover { transform: scale(1.03); }

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #6c63ff33;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================== */
/* TABLET - 768px        */
/* ===================== */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
        height: 60px;
    }

    nav ul {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 60px 16px 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container h1 {
        font-size: 1.6rem;
    }

    .summary {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .resim-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .form-page {
        max-width: 100%;
    }

    .ai-gorseller h2 {
        font-size: 1.3rem;
    }
}

/* ===================== */
/* MOBİL - 480px         */
/* ===================== */
@media (max-width: 480px) {
    nav .logo a {
        font-size: 1.2rem;
    }

    .hero {
        padding: 40px 12px 30px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    .container {
        padding: 0 12px;
        margin: 24px auto;
    }

    .container h1 {
        font-size: 1.3rem;
    }

    .summary {
        padding: 0 12px;
        margin: 24px auto;
        gap: 16px;
    }

    .card {
        padding: 16px;
    }

    .news-item {
        padding: 16px;
    }

    .news-item h2 {
        font-size: 1rem;
    }

    .tool-card {
        padding: 16px;
    }

    .resim-grid {
        grid-template-columns: 1fr;
    }

    .resim-grid img {
        height: 200px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .form-box {
        padding: 16px;
    }

    .ai-gorseller {
        padding: 0 12px;
    }

    .ai-gorseller h2 {
        font-size: 1.1rem;
    }

    th, td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .btn.small {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}
