/* Custom Styles for Meslekhane.com */

/* Font Family */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(120deg, #f8f9ff 0%, #fbefff 100%);
    color: #222;
    margin: 0;
    padding: 0;
}

/* Color Variables */
:root {
    --primary-color: #e63946;
    --secondary-color: #6c757d;
    --accent-color: #007bff;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark: #343a40;
}

/* Navbar Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #dc3545 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero-section-small {
    background: linear-gradient(135deg, var(--primary-color) 0%, #dc3545 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 30px;
}

.hero-section-small h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section-small p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: var(--light-bg);
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.card-title {
    font-weight: 600;
    color: var(--dark);
}

/* Button Styles */
.btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-danger {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Badge Styles */
.badge {
    border-radius: 20px;
    padding: 8px 12px;
    font-weight: 500;
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    height: 10px;
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Sidebar Styles (for user panel) */
.sidebar {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
}

.sidebar .nav-link {
    color: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #dc3545 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-card .stats-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Course Cards */
.course-card {
    transition: transform 0.3s ease;
}

.course-card .card-body {
    display: flex;
    flex-direction: column;
}

.course-card .card-text {
    flex-grow: 1;
}

.course-card .btn {
    margin-top: auto;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Exam Styles */
.exam-question {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.exam-question h5 {
    color: var(--dark);
    margin-bottom: 15px;
}

.exam-options label {
    display: block;
    padding: 15px;
    margin: 5px 0;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exam-options label:hover {
    border-color: var(--primary-color);
    background-color: rgba(230, 57, 70, 0.1);
}

.exam-options input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

/* Certificate Styles */
.certificate-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.certificate-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .stats-card .stats-number {
        font-size: 2rem;
    }
    
    .sidebar {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ana navigasyon için sadece ana menüye özel flex */
.navbar-nav.me-auto {
  display: flex;
  gap: 32px;
}

/* .dropdown-menu için sadece görsel stil */
.dropdown-menu {
  border: none !important;
  box-shadow: 0 4px 24px rgba(76, 99, 255, 0.15) !important;
  border-radius: 12px !important;
  padding: 0.5rem 0 !important;
  background: white !important;
  min-width: 200px !important;
}

.dropdown-item {
  padding: 0.75rem 1.5rem !important;
  color: #6c6c8a !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, #f8f9ff 0%, #e0e7ff 100%) !important;
  color: #6c63ff !important;
}

.dropdown-divider {
  margin: 0.5rem 0 !important;
  border-color: #e9ecef !important;
}

/* Kaydırma barları için modern stil */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #6c63ff 0%, #48c6ef 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #48c6ef 0%, #6c63ff 100%);
}

/* Firefox için kaydırma çubuğu */
* {
    scrollbar-width: thin;
    scrollbar-color: #6c63ff #f1f1f1;
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Modern kullanıcı arayüzü için ana CSS - örnek görsele uygun */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5em;
}

a {
    color: #6c63ff;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #4f47c3;
}

.btn, .button {
    display: inline-block;
    background: linear-gradient(90deg, #6c63ff 0%, #48c6ef 100%);
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    border: none;
    box-shadow: 0 2px 8px rgba(76, 68, 182, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.btn:hover, .button:hover {
    background: linear-gradient(90deg, #48c6ef 0%, #6c63ff 100%);
    box-shadow: 0 4px 16px rgba(76, 68, 182, 0.15);
}

.header, .navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(76, 68, 182, 0.06);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .logo {
    font-size: 2em;
    font-weight: 800;
    color: #6c63ff;
    letter-spacing: 1px;
}

/* Sadece ana navigasyon için geçerli olacak şekilde daraltıldı */
.navbar > .container > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}
.navbar > .container > ul > li {
    display: inline-block;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0 40px 0;
    background: linear-gradient(120deg, #f8f9ff 0%, #fbefff 100%);
}
.hero-content {
    max-width: 600px;
}
.hero-title {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 0.4em;
    color: #222;
}
.hero-desc {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 2em;
}
.hero .btn {
    font-size: 1.2em;
    padding: 16px 40px;
}

.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(76, 68, 182, 0.10);
    padding: 32px 28px;
    margin-bottom: 32px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
    box-shadow: 0 8px 32px rgba(76, 68, 182, 0.18);
    transform: translateY(-4px) scale(1.02);
}

.badge {
    display: inline-block;
    background: linear-gradient(90deg, #6c63ff 0%, #48c6ef 100%);
    color: #fff;
    border-radius: 6px;
    padding: 4px 16px;
    font-size: 0.95em;
    font-weight: 600;
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0 20px 0;
    }
    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .header, .navbar {
        padding: 10px 0;
    }
    .hero-title {
        font-size: 2em;
    }
    .card {
        padding: 18px 10px;
    }
}

/* Modern kart grid yapısı */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Arama ve kategori kutuları */
.search-box, .category-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(76, 68, 182, 0.07);
    padding: 18px 24px;
    margin-bottom: 24px;
}

/* Modern input */
input, select, textarea {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1em;
    outline: none;
    transition: border 0.2s;
}
input:focus, select:focus, textarea:focus {
    border: 1.5px solid #6c63ff;
}

/* Modern table */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(76, 68, 182, 0.07);
}
th, td {
    padding: 16px 12px;
    text-align: left;
}
th {
    background: #f3f3ff;
    font-weight: 700;
    color: #6c63ff;
}
tr:nth-child(even) {
    background: #fafaff;
}

/* Modern icon butonlar */
.icon-btn {
    background: none;
    border: none;
    color: #6c63ff;
    font-size: 1.3em;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition: background 0.2s;
}
.icon-btn:hover {
    background: #f3f3ff;
}

.hero {
    background: linear-gradient(120deg, #f8f9ff 0%, #e0e7ff 100%);
    border-radius: 0 0 32px 32px;
    padding: 3rem 0 2rem 0;
    margin-bottom: 2rem;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d2d4d;
    letter-spacing: -1px;
}
.hero-desc {
    color: #5a5a89;
    font-size: 1.2rem;
}

.course-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d2d4d;
}
.course-card .card-text {
    font-size: 1rem;
    color: #6c6c8a;
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 1rem 0;
        border-radius: 0 0 18px 18px;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

/* Navbar dropdown pozisyonu */
.navbar-nav .dropdown {
  position: relative !important;
}

.navbar-nav .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
}

/* Hover ile açılmasını engelle */
.dropdown.show .dropdown-menu {
  display: block !important;
} 

/* KATEGORİ KARTI */
.category-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: white;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-card .card-title {
    font-weight: 600;
    color: #333;
}

.category-card .card-text {
    color: #666;
}

/* EĞİTİM KARTI */
.course-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #fff;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.course-card .card-img-top, .course-card img {
    border-radius: 0 0 10px 10px;
    object-fit: cover;
    min-height: 180px;
    max-height: 220px;
    width: 100%;
}
.course-card .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007bff;
    color: #fff;
    font-size: 0.9em;
    font-weight: 600;
    z-index: 2;
}
.course-card .price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9800;
    color: #fff;
    font-size: 0.9em;
    font-weight: 700;
    border-radius: 10px;
    padding: 4px 12px;
    z-index: 2;
}
.course-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.course-card .card-text {
    color: #666;
    font-size: 0.95rem;
}
.course-card .btn {
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
}
.course-card .btn-primary {
    background: #007bff;
    border-color: #007bff;
}
.course-card .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Eğitim kartları için yeni stiller */
.course-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.course-card .card-img-top, .course-card img {
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.course-card .badge {
    background: linear-gradient(90deg, #6c63ff 0%, #48c6ef 100%);
    color: white;
    border-radius: 20px;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 0.8rem;
}

.course-card .price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-card .price-display .price {
    font-weight: 600;
    font-size: 1.1rem;
}

.course-card .price-display .original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}

.course-card .price-display .discount-price {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.1rem;
}

.course-card .price-display .duration {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Kartların eşit yükseklikte olması için */
.course-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card .card-body .mt-auto {
    margin-top: auto;
}

/* Kategori kartları için özel stiller */
.category-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px; /* Minimum yükseklik garantisi */
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-card .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.category-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
    min-height: 200px; /* Minimum card-body yüksekliği */
}

.category-card .card-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.category-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
    min-height: 60px; /* Minimum açıklama yüksekliği */
}

.category-card .btn {
    margin-top: auto;
    border-radius: 25px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    align-self: stretch;
    width: 100%;
}

.category-card .btn-outline-primary {
    color: #6c63ff;
    border-color: #6c63ff;
}

.category-card .btn-outline-primary:hover {
    background-color: #6c63ff;
    border-color: #6c63ff;
    color: white;
}

/* Kategori kartları için grid düzeni */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.category-grid .col-md-4 {
    display: flex;
    padding: 0 15px;
    margin-bottom: 30px;
}

.category-grid .category-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Kategori kartları için eşit yükseklik garantisi */
.category-card {
    height: 100% !important;
    min-height: 450px !important;
}

.category-card .card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    justify-content: space-between !important;
}

.category-card .card-text {
    flex: 1 !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: flex-start !important;
}

.category-card .btn {
    margin-top: auto !important;
    align-self: stretch !important;
}
 