/* SaaS Medya Platformu - Ana Sayfa CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.3rem;
}

/* Cards */
.card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.bulten-card .card-img-top {
    border-radius: 12px 12px 0 0;
}

.category-card {
    cursor: pointer;
}

.category-card:hover {
    background-color: #f0f0f0;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.modal .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-right: none;
}

.modal .input-group .form-control {
    border-left: none;
}

.modal .input-group .form-control:focus {
    border-color: #e0e0e0;
    box-shadow: none;
}

.modal .input-group:focus-within .input-group-text,
.modal .input-group:focus-within .form-control {
    border-color: #e74c3c;
}

/* Login Modal Specific */
#loginModal .modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* Register Modal Specific */
#registerModal .modal-header {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

/* Loading Spinner */
.btn .fa-spinner {
    margin-right: 5px;
}

/* Hero Slider */
.hero-slider .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.hero-slider .carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 60px 40px;
    border-radius: 0 0 12px 12px;
}

.hero-slider .carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-slider .carousel-caption p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 16px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Step Numbers */
.step-number {
    transition: all 0.3s ease;
}

.step-number:hover {
    transform: scale(1.1);
}

/* Modern Card Styles */
.bulten-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.bulten-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.bulten-card .card-img-top {
    transition: transform 0.5s ease;
}

.bulten-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Section Styles */
section {
    position: relative;
}

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .display-5 {
        font-size: 1.8rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .hero-slider .carousel-item {
        height: 300px !important;
    }
    
    .hero-slider .carousel-caption {
        padding: 30px 20px;
    }
    
    .hero-slider .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .feature-card, .bulten-card {
        margin-bottom: 1rem;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    #registerModal .modal-body {
        padding: 20px;
    }
    
    section.mb-5 {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 576px) {
    .hero-slider .carousel-item {
        height: 250px !important;
    }
    
    .hero-slider .carousel-caption h1 {
        font-size: 1.2rem;
    }
    
    .hero-slider .carousel-caption .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem;
    }
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
}

.navbar .badge.rounded-pill {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar i {
    font-size: 1.5rem;
    color: #fff;
}

/* Notification Dropdown */
.notification-dropdown {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0;
}

.notification-dropdown .dropdown-header {
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    padding: 15px;
}

.notification-dropdown .dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.notification-dropdown .dropdown-item:hover {
    background: #f8f9fa;
}

.notification-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

/* Message Bubble Styles */
.message-bubble {
    display: flex;
}

.message-bubble.sent {
    justify-content: flex-end;
}

.message-bubble.received {
    justify-content: flex-start;
}

.message-content {
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.message-content.sent {
    border-bottom-right-radius: 4px;
}

.message-content.received {
    border-bottom-left-radius: 4px;
}

/* Message Area */
.message-area {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 12px;
}

/* Conversation List */
.conversation-list {
    scrollbar-width: thin;
}

.conversation-list a {
    transition: background 0.2s;
}

.conversation-list a:hover {
    background: #f8f9fa !important;
}

/* Search Results Dropdown */
.search-results {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.search-results a {
    transition: background 0.2s;
}

.search-results a:hover {
    background: #f0f7ff !important;
}

/* Badge Animations */
.badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Profile Dropdown */
.profile-dropdown {
    min-width: 250px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
}

.profile-dropdown .dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 20px;
}

.profile-dropdown .dropdown-header strong {
    font-size: 1.1rem;
}

.profile-dropdown .dropdown-item {
    padding: 12px 20px;
    border-radius: 0;
}

.profile-dropdown .dropdown-item:hover {
    background: #f8f9fa;
}

/* Notification Badge */
.position-absolute.badge {
    font-size: 0.6rem;
    padding: 0.3em 0.5em;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Message Notification Badge */
.nav-link .badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .notification-dropdown {
        width: 300px !important;
        max-height: 350px !important;
    }
    
    .profile-avatar {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .navbar .nav-link span:not(.badge) {
        display: none;
    }
    
    .notification-dropdown {
        position: absolute;
        right: 0;
        width: 100vw !important;
        max-width: 100vw;
        border-radius: 0;
        max-height: 50vh !important;
    }
}
