/* Aşk Temalı Tasarım */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #f8b500;
    --bg-color: #fff5f7;
    --card-bg: #ffffff;
    --text-color: #2d3436;
    --text-light: #636e72;
    --border-color: #ffe0e6;
    --shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
    --shadow-hover: 0 6px 20px rgba(255, 107, 157, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffeef5 0%, #fff5f7 50%, #ffeef5 100%);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

/* Giriş Sayfası */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-page::before {
    content: '💕';
    position: absolute;
    font-size: 200px;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.login-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    max-width: 400px;
    width: 90%;
    position: relative;
    z-index: 1;
    text-align: center;
}

.heart-decoration {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-container h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 28px;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* Butonlar */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-admin, .btn-back, .btn-logout {
    padding: 8px 15px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-admin {
    background: var(--accent-color);
    color: white;
}

.btn-back {
    background: var(--text-light);
    color: white;
}

.btn-logout {
    background: var(--secondary-color);
    color: white;
}

.btn-admin:hover, .btn-back:hover, .btn-logout:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dashboard */
.dashboard-page {
    min-height: 100vh;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Dashboard Layout - Sol: Liste, Orta: Video, Sağ: Sohbet */
.dashboard-layout {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    gap: 20px;
    height: calc(100vh - 60px);
    min-height: 700px;
}

/* Video Bölümü */
.video-section {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.video-container {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.video-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.3;
    flex-shrink: 0;
}

.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

/* Küçük Video Oynatıcı */
.youtube-wrapper-small {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0;
    box-shadow: var(--shadow);
}

/* Orta Boy Video Oynatıcı */
.youtube-wrapper-medium {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 0;
    box-shadow: var(--shadow);
    flex: 1;
    min-height: 0;
}

.youtube-wrapper-medium iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-wrapper-small iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.btn-nav {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.video-counter {
    color: var(--text-light);
    font-weight: 500;
}

.no-video {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

/* Video Listesi Bölümü */
.video-list-section {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.video-list-section h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 18px;
}

.btn-add-video {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.btn-add-video:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Video Ekleme Formu */
.add-video-form {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
}

.form-group-small {
    margin-bottom: 12px;
}

.form-group-small label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
}

.form-group-small input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s;
}

.form-group-small input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-primary-small {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.btn-primary-small:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-cancel {
    background: var(--text-light);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #555;
    transform: translateY(-2px);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-list-item-wrapper {
    margin-bottom: 10px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.video-list-item-wrapper:hover {
    border-color: var(--primary-color);
}

.video-list-item-wrapper.active {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(196, 69, 105, 0.1) 100%);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.video-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    flex: 1;
}

.video-list-item:hover {
    background: #ffeef5;
    transform: translateX(5px);
}

.video-list-item-wrapper.active .video-list-item {
    background: transparent;
}

.video-list-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.video-list-item-wrapper.active .video-list-number {
    background: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(196, 69, 105, 0.3);
}

/* Video Listesi İşlem Butonları */
.video-list-item-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-list-actions {
    display: flex;
    gap: 5px;
    padding: 0 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-list-item-wrapper:hover .video-list-actions {
    opacity: 1;
}

.btn-move,
.btn-delete-video {
    background: var(--text-light);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.btn-move:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-delete-video {
    background: #dc3545;
}

.btn-delete-video:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.video-list-content {
    flex: 1;
    min-width: 0;
}

.video-list-title {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-light);
}

.video-thumb {
    width: 40px;
    height: 30px;
    border-radius: 5px;
    object-fit: cover;
}

.no-videos-text {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

/* Sohbet Bölümü */
.chat-section {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 500px;
}

/* Büyük ve Belirgin Sohbet Bölümü */
.chat-section-large {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 3px solid var(--primary-color);
}


.chat-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
}

.chat-header h2 {
    font-size: 20px;
}

.chat-header-large {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 17px 17px 0 0;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.chat-header-large h2 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.chat-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-messages-large {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: linear-gradient(to bottom, #fff 0%, #fff5f7 100%);
}

.chat-message {
    padding: 12px 15px;
    border-radius: 15px;
    max-width: 70%;
    animation: slideIn 0.3s ease;
}

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

.own-message {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.other-message {
    background: var(--bg-color);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
    opacity: 0.9;
}

.message-username {
    font-weight: 600;
}

.message-time {
    margin-left: 10px;
}

.message-text {
    word-wrap: break-word;
}

.chat-input-container {
    padding: 15px 20px;
    border-top: 2px solid var(--border-color);
    border-radius: 0 0 15px 15px;
}

.chat-input-container-large {
    padding: 20px 30px;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 17px 17px;
    background: white;
}

.chat-form {
    display: flex;
    gap: 10px;
}

.chat-form-large {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Emoji Picker */
.emoji-picker-container {
    position: relative;
}

.btn-emoji {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 30px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
}

.btn-emoji:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.emoji-picker {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 1000;
    max-width: 300px;
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid var(--primary-color);
}

.emoji-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.emoji-category {
    font-size: 24px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    user-select: none;
}

.emoji-category:hover {
    background: var(--bg-color);
    transform: scale(1.2);
}

.emoji-category:active {
    transform: scale(1.1);
}

#message-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
}

#message-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.chat-form-large #message-input {
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    flex: 1;
    min-width: 0;
}

.chat-form-large #message-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
}

.btn-send {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-send:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-send-large {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-send-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.send-icon {
    font-size: 18px;
}

/* Admin Sayfası */
.admin-page {
    min-height: 100vh;
}

.admin-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Admin Tab Menüsü */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.admin-tab {
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.admin-tab:hover {
    color: var(--primary-color);
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.admin-section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.admin-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 22px;
}

.video-form {
    max-width: 600px;
}

.video-form small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 12px;
}

.video-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.video-table th,
.video-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.video-table th {
    background: var(--bg-color);
    color: var(--primary-color);
    font-weight: 600;
}

.video-table tr:hover {
    background: var(--bg-color);
}

.url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.url-cell a {
    color: var(--primary-color);
    text-decoration: none;
}

.url-cell a:hover {
    text-decoration: underline;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-edit {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-edit:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-delete:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Mesajlar */
.success-message,
.error-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 250px 1fr 300px;
    }
}

@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }
    
    .video-list-section {
        max-height: 400px;
    }
    
    .chat-section-large {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .video-navigation {
        flex-direction: column;
        text-align: center;
    }
    
    .chat-message {
        max-width: 85%;
    }
    
    .video-table {
        font-size: 14px;
    }
    
    .video-table th,
    .video-table td {
        padding: 8px;
    }
    
    .chat-section-large {
        min-height: 500px;
    }
    
    .chat-header-large {
        padding: 20px;
    }
    
    .chat-messages-large {
        padding: 20px;
    }
    
    .chat-input-container-large {
        padding: 15px 20px;
    }
    
    .chat-form-large {
        flex-direction: column;
    }
    
    .btn-send-large {
        width: 100%;
        justify-content: center;
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar,
.chat-messages-large::-webkit-scrollbar,
.video-list-section::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.chat-messages-large::-webkit-scrollbar-track,
.video-list-section::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb,
.chat-messages-large::-webkit-scrollbar-thumb,
.video-list-section::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.chat-messages-large::-webkit-scrollbar-thumb:hover,
.video-list-section::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

