/* 
* Radyo Sistemi - Ana CSS DosyasÄ±
* Version: 1.0
* System: NETGUC
* Tarih: 27-07-2025
*/

/* =============== GENEL STILLER =============== */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: none;
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Renk stilleri */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: #6c757d !important;
}

.textx-mutedx {
    color: #fcfdff !important;
}

/* Container ve bÃ¶lÃ¼mler */
.container {
    padding: 0 15px;
}

section {
    position: relative;
}

/* =============== NAVBAR =============== */
.navbar {
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
}

.navbar-dark .navbar-nav .active > .nav-link {
    color: #fff;
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

/* =============== HERO BÃ–LÃœMÃœ =============== */
.hero {
    background-color: #f1f5f9;
    padding: 4rem 0;
}

.hero h1 {
    font-weight: 700;
    color: #2c3e50;
}

.hero .lead {
    font-size: 1.15rem;
    color: #566573;
}

/* =============== BÃ–LÃœM BAÅžLIKLARI =============== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    position: relative;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* =============== RADYO KARTLARI =============== */
.radio-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-img-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background-color: #f1f1f1;
}

.card-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.radio-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.play-btn:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

.radio-card .card-body {
    padding: 1rem;
}

.radio-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.radio-card .card-title a {
    color: #2c3e50;
}

.radio-card .card-text {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* =============== MINI OYNATICI =============== */
#mini-player {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#mini-player img {
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#player-toggle, #player-stop {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#volume-control {
    width: 100px;
}

#now-playing-info {
    max-width: 100%;
}

#now-playing-text {
    font-weight: 500;
}

/* =============== KATEGORÄ° KARTLARI =============== */
.category-card {
    display: block;
    color: inherit;
    height: 100%;
}

.category-card:hover {
    text-decoration: none;
    color: inherit;
}

.category-card .card {
    transition: all 0.3s ease;
    border-radius: 8px;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.category-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.category-card .fas {
    color: var(--primary-color);
}

/* =============== Ä°STATÄ°STÄ°KLER =============== */
.stats-section .h1 {
    font-weight: 700;
}

.stats-section p {
    font-weight: 500;
    opacity: 0.85;
}

/* =============== NASIL Ã‡ALIÅžIR BÃ–LÃœMÃœ =============== */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* =============== FOOTER =============== */
footer {
    background-color: #2c3e50;
}

footer h5 {
    color: white;
    font-weight: 600;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

footer a:hover {
    color: white;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* =============== FORM STILLERI =============== */
.form-control {
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* =============== LOGÄ°N VE KAYIT FORMLARI =============== */
.auth-box {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.auth-box .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-box h1 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.auth-box .form-group {
    margin-bottom: 1.25rem;
}

.auth-box .btn {
    width: 100%;
    padding: 0.75rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* =============== ADMIN PANELÄ° =============== */
.sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.sidebar .nav-link {
    color: #2c3e50;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.sidebar .nav-link i {
    width: 24px;
    margin-right: 0.5rem;
}

.content-wrapper {
    padding: 1.5rem;
}

.dashboard-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.dashboard-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.dashboard-card .value {
    font-size: 2rem;
    font-weight: 700;
}

/* =============== RADYO DETAY SAYFASI =============== */
.station-header {
    margin-bottom: 2rem;
}

.station-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.station-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.station-actions {
    margin: 1.5rem 0;
}

.player-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.large-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.large-play-btn:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

/* =============== EMBED KOD KUTUSU =============== */
.embed-code-box {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.embed-code-box pre {
    margin: 0;
    background-color: #f1f1f1;
    padding: 0.5rem;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
}

/* =============== KULLANICI PROFÄ°L SAYFASI =============== */
.profile-header {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.profile-info h1 {
    margin-bottom: 0.5rem;
}

.profile-tabs {
    margin-bottom: 1.5rem;
}

.profile-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    color: #6c757d;
}

.profile-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: transparent;
}

/* =============== Ä°STATÄ°STÄ°K GRAFÄ°KLERÄ° =============== */
.stats-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* =============== PAGINATION =============== */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: 4px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* =============== ALERTS =============== */
.alert {
    border-radius: 4px;
    border: none;
    padding: 1rem;
}

/* =============== DATATABLES OVERRIDE =============== */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color);
    color: white !important;
    border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9;
    border-color: #f1f5f9;
    color: var(--primary-color) !important;
}

/* =============== YARDIMCI SINIFLAR =============== */
/* Kenar boÅŸluklarÄ± */
.mt-6 {
    margin-top: 4rem;
}

.mb-6 {
    margin-bottom: 4rem;
}

.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* GÃ¶lge efektleri */
.shadow-sm {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Yuvarlak kenarlar */
.rounded-lg {
    border-radius: 8px !important;
}

.rounded-xl {
    border-radius: 12px !important;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 767.98px) {
    .navbar-brand img {
        max-height: 35px;
    }
    
    .hero {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .d-flex {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    #mini-player {
        text-align: center;
    }
    
    #mini-player .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .station-logo {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem;
    }
    
    .station-info {
        text-align: center;
    }
    
    .profile-avatar {
        margin: 0 auto 1rem;
    }
    
    .profile-info {
        text-align: center;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.25rem;
    }
}

/* =============== ANÄ°MASYONLAR =============== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============== DARK MODE =============== */
.dark-mode {
    background-color: #1a1a2e;
    color: #e6e6e6;
}

.dark-mode .card,
.dark-mode .auth-box,
.dark-mode .dropdown-menu,
.dark-mode .stats-card,
.dark-mode .player-container,
.dark-mode .embed-code-box {
    background-color: #16213e;
    border-color: #0d1526;
}

.dark-mode .card-title a,
.dark-mode .form-group label,
.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6 {
    color: #e6e6e6;
}

.dark-mode .bg-light {
    background-color: #16213e !important;
}

.dark-mode .text-muted {
    color: #a9a9a9 !important;
}

.dark-mode .form-control {
    background-color: #0d1526;
    border-color: #16213e;
    color: #e6e6e6;
}

.dark-mode .dropdown-item {
    color: #e6e6e6;
}

.dark-mode .dropdown-item:hover {
    background-color: #0d1526;
}

/* =============== RADYO EMBED PLAYER =============== */
.embed-player {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.embed-player.dark {
    background-color: #16213e;
    color: #e6e6e6;
}

.embed-controls {
    display: flex;
    align-items: center;
    padding: 0.75rem;
}

.embed-station-info {
    margin-left: 0.75rem;
    overflow: hidden;
}

.embed-station-name {
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.embed-now-playing {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.embed-player.dark .embed-now-playing {
    color: #a9a9a9;
}

/* =============== YEDEKLEME SAYFASI =============== */
.backup-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.backup-header {
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.backup-header h5 {
    margin: 0;
}

.backup-body {
    padding: 1rem;
}

.backup-footer {
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.user-avatar a {
    display: block;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.user-avatar a:hover {
    transform: scale(1.05);
}

.radio-owner a:hover,
.station-owner a:hover {
    color: #007bff !important;
}

.activity-text a {
    color: #495057;
    font-weight: 600;
}

.activity-text a:hover {
    color: #007bff;
}

.owner-info {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.copy-link-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-link-btn:hover {
    background: #007bff;
    color: white;
}

/* Profile link preview */
.profile-link-preview {
    font-family: monospace;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    word-break: break-all;
}

/* Toast notifications için */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 300px;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.toast-success {
    border-left: 4px solid #28a745;
}

.toast-notification.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-notification.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 12px;
}

.toast-icon {
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toast-close:hover {
    background: #f5f5f5;
    color: #333;
}