/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo h1 {
    color: #667eea;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: -5px;
}

.logo .tagline {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-item {
    padding: 10px 16px;
    text-decoration: none;
    color: #666;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-login,
.btn-register {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-login:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Welcome Banner */
.welcome-banner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.banner-content h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat i {
    font-size: 2rem;
    color: #667eea;
}

.stat span {
    font-weight: 600;
    color: #333;
}

/* Content Grid */
.content-grid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.grid-header h2 {
    font-size: 2rem;
    color: #333;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-options select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-options select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Cards Container - MSN Style Layout */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Featured card for main content */
.content-card.featured {
    grid-column: span 2;
    height: 450px;
}

.content-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 320px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

/* MSN-style card layout */
.content-card.youtube-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.content-card.youtube-card:hover {
    background: linear-gradient(135deg, #fff 0%, #f0f2ff 100%);
}

.card-header {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.platform-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.platform-icon.youtube { background: #ff0000; }
.platform-icon.twitter { background: #000000; }
.platform-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.platform-icon.facebook { background: #1877f2; }
.platform-icon.tiktok { background: #000000; }

.card-meta {
    flex: 1;
}

.card-meta .username {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.card-meta .timestamp {
    color: #666;
    font-size: 0.8rem;
}

.card-content {
    padding: 10px 15px 5px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    height: auto;
    min-height: 50px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-media {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

.card-media-wrapper {
    position: relative;
    width: 100%;
    height: 75%;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 15px 15px 0 0;
    flex: 1;
}

.card-media-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 15px 15px 0 0;
}

.card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
    padding: 40px 15px 15px;
    z-index: 5;
}

.card-title-overlay .card-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.default-media {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-size: cover !important;
    background-position: center !important;
    height: 100%;
}

.default-media-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.card-media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-media-container:hover .card-media-image {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 6;
}

.card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0) 100%);
    z-index: 5;
}

.card-title-overlay .card-title {
    color: white;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.card-media-wrapper {
    position: relative;
    height: 75%;
    overflow: hidden;
}

.card-media-container:hover .media-overlay {
    opacity: 1;
    transform: scale(1.1);
}

/* Video-specific styles */
.video-container {
    position: relative;
}

.card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    background-color: #000;
}

.video-duration {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 3;
}

/* Ses durumu göstergesi */
.volume-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 8px;
    z-index: 10;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.video-container .card-media-image {
    transition: opacity 0.3s ease;
}

.video-container .media-overlay {
    z-index: 4;
}

/* YouTube-specific styles */
.youtube-container {
    position: relative;
}

.youtube-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    background-color: #000;
}

.youtube-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.youtube-container .card-media-image {
    transition: opacity 0.3s ease;
}

.youtube-container .media-overlay {
    z-index: 4;
}

/* Video hover states */
.video-container:hover .video-duration,
.youtube-container:hover .video-duration {
    opacity: 0;
}

.card-stats {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Load More Button */
.load-more-container {
    text-align: center;
}

.btn-load-more {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Video Modal Styles */
.video-modal {
    background: transparent;
    z-index: 2000;
    overflow-y: auto;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    width: 90%;
    max-width: 1000px;
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #222;
    color: white;
    border-bottom: 1px solid #333;
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.video-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #aaa;
}

.video-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.video-control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.video-modal-body {
    flex: 1;
    overflow: hidden;
}

.video-player-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

#videoModalIframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video elementleri için stillerin uyarlanması */
#videoModalIframe[src=""] {
    display: none;
}

/* HTML5 video stilini iframe ile aynı tutma */
#videoModalIframe:not([src]) {
    background: #000;
}

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #333;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Modal Overlay */
.modal-content {
    position: relative;
    z-index: 2001;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.social-login {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.social-login p {
    color: #666;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.btn-social.google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-social.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.btn-social.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-container {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    margin: 0 auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-in-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.video-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.video-close-btn:hover {
    background: rgba(255, 59, 48, 0.8);
    transform: scale(1.1);
}

.video-controls-panel {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.video-control-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-body {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-color: black;
}

.video-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .banner-content h2 {
        font-size: 2rem;
    }

    .banner-stats {
        gap: 20px;
    }

    .grid-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-options {
        width: 100%;
        justify-content: space-between;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .content-card {
        height: 280px;
    }

    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    /* Video Modal Responsive */
    .video-modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .video-modal-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .video-controls {
        align-self: flex-end;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }

    .welcome-banner {
        padding: 25px 20px;
    }

    .content-grid {
        padding: 20px 15px;
    }

    .banner-content h2 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner-stats {
        flex-direction: column;
        gap: 15px;
    }

    .video-modal-content {
        width: 95%;
        max-width: 480px;
        border-radius: 12px;
        max-height: 90vh;
    }
    
    .video-modal-header {
        padding: 10px 15px;
    }
    
    .video-control-btn,
    .video-close {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}