/* style.css */

:root {
    --primary-color: #FF6B00;    /* Turuncu */
    --secondary-color: #000000;  /* Siyah */
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --dark-gray: #333333;
    --primary-darker-color: #e65c00; /* Turuncunun biraz daha koyu tonu, hover için */
}

/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--primary-color);
    color: var(--dark-gray);
    min-height: 100vh;
}

/* Ana Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--white);
    min-height: 100vh;
}

/* Header ve Navigasyon */
header {
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    max-width: 1400px;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.logo {
    width: 180px;
    display: block;
}

.logo img {
    width: 100%;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    padding: 10px 0;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.hamburger-menu {
    display: none; /* Varsayılan olarak gizli */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
}

/* FloAI Live Pop-up ve Buton Stilleri */
.new-label {
    background-color: red;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 5px;
    position: absolute;
    top: -10px;
    right: -25px;
    white-space: nowrap;
}

.live-menu-item {
    position: relative;
}

/* Modal (Pop-up) stil kodları */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.5s;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    animation: slideIn 0.5s;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

#floaiLiveContainer {
    padding: 20px;
}

#floaiLogo img {
    width: 100px;
    margin-bottom: 20px;
}

#floaiLiveStatus #micIcon {
    font-size: 50px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

#floaiLiveStatus #micIcon.listening {
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); }
    to { transform: translateY(0); }
}

/* Ana İçerik */
main {
    padding-top: 80px; /* Header yüksekliği kadar boşluk */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 107, 0, 0.9), rgba(255, 107, 0, 0.8)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Section Styles */
.section {
    padding: 5rem 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.content-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.card-image {
    overflow: hidden;
}

.card-image img,
.card-image video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.duration {
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: var(--primary-darker-color);
}

/* Pre-chat Modal */
#pre-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#pre-chat-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#pre-chat-modal .form-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

#pre-chat-modal .form-content h2 {
    margin-top: 0;
    color: #333;
}

#pre-chat-modal .form-content p {
    color: #666;
    margin-bottom: 25px;
}

#pre-chat-modal .form-content label {
    text-align: left;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

#pre-chat-modal .form-content input,
#pre-chat-modal .form-content select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

#pre-chat-modal .form-content button {
    margin-top: 30px;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#pre-chat-modal .form-content button:hover {
    background-color: var(--primary-darker-color);
}

/* Chatbot */
#chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-container {
    width: 400px;
    height: 600px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.chatbot-container.minimized {
    height: 60px;
    width: 250px;
    border-radius: 30px;
}

.chatbot-container.hidden {
    display: none;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
}

.minimize-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f7f7f7;
}

.message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.message p {
    margin: 0;
}

.message.bot {
    background-color: #e9e9eb;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background-color: var(--primary-color);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    flex-direction: row-reverse;
}

.message.typing p {
    font-style: italic;
    color: #888;
}

.message.error p {
    color: #d93025;
    font-weight: bold;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

.chat-input input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 16px;
    margin-right: 10px;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.chat-input button:hover {
    background-color: var(--primary-darker-color);
}

/* Avatar */
.message .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--white);
    flex-shrink: 0;
}

.message.bot .avatar {
    background-color: var(--primary-darker-color);
    background-image: url('../images/floai.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--primary-darker-color);
    font-size: 0;
}

.message.user .avatar {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 20px 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-logo {
    max-width: 200px;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Tasarım */
@media (max-width: 1400px) {
    .container {
        margin: 0;
    }
    
    header {
        max-width: 100%;
    }
    
    #chatbot {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        text-align: center;
        padding: 1rem 0;
    }

    nav.open .nav-menu {
        display: flex;
    }

    .nav-menu li {
        margin-bottom: 1rem;
    }

    .nav-menu li a {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
    
    .hamburger-menu {
        display: block;
    }

    .hero {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
    
    .chatbot-container {
        width: 100%;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .modal-content {
        margin-top: 50%;
    }

    .close-button {
        top: 5px;
        right: 15px;
    }

    #pre-chat-modal .form-content {
        width: 90%;
        padding: 1rem;
    }
}
