/*
 * V8 Theme - Components CSS
 * Version: 1.0.0
 * Description: Widget ve component stilleri
 */
 
/* Dizi/film kartları, sliderlar, modallar ve diğer komponent stillerini buraya ekleyeceğiz */

/* ===== REQUEST PAGE STYLES ===== */

/* Filter tab container */
.filter-tab-container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(71, 85, 105, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    padding: 0.25rem;
    display: inline-flex;
}

/* Filter tab states */
.request-filter-tab {
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}


.request-filter-tab.active {
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    background: linear-gradient(135deg, #b1133f, #8b0f31);
    box-shadow: 0 4px 15px rgba(177, 19, 63, 0.4), 0 0 0 1px rgba(177, 19, 63, 0.2);
    transform: translateY(-1px);
}

.request-filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #60a5fa;
    border-radius: 1px;
}

.request-filter-tab:not(.active) {
    color: #94a3b8;
    background: transparent;
}

.request-filter-tab:not(.active):hover {
    color: #ffffff;
    background-color: rgba(51, 65, 85, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Reddit-style vote buttons */
.vote-buttons.upvoted .vote-up svg {
    color: #fb923c;
}

.vote-buttons.downvoted .vote-down svg {
    color: #60a5fa;
}

.vote-up:hover svg {
    color: #fb923c;
}

.vote-down:hover svg {
    color: #60a5fa;
}

/* Request item hover effects */
.request-item:hover {
    transform: scale(1.01);
}

/* Filter transitions */
.request-item {
    transition: all 0.3s ease;
}

.request-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Global search */
#global-search:focus {
    outline: none;
}

#global-search-results {
    max-height: 24rem;
    overflow-y: auto;
    background: #111827;
    border: 1px solid #374151;
}

/* Search type selector */
.search-type-selector {
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid #475569;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
    min-width: 120px;
}

.search-type-selector:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Global search input */
.global-search-input {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid #475569;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.global-search-input::placeholder {
    color: #94a3b8;
}

.global-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Loading state */
.more-request-global:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animation classes */
.animate-fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* ===== FLOW PAGE STYLES ===== */


.flow-write-header .tab-active {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.flow-write-header button:not(.tab-active):hover {
    background-color: #374151;
    color: #e5e7eb;
}

/* Flow post actions */
.flow-post-actions button {
    transition: all 0.2s ease;
}

/* ===== POLL RADIO BUTTON STYLES ===== */

/* Custom radio button container */
.poll-vote label .relative {
    position: relative;
}

/* Radio button outer circle */
.poll-vote label .w-5.h-5 {
    position: relative;
    transition: all 0.2s ease;
    border: 2px solid #9ca3af;
    background: transparent;
}

/* Radio button inner dot */
.poll-vote label .w-2\.5.h-2\.5 {
    transition: all 0.2s ease;
    background: #ef4444;
    transform: scale(0);
}

/* Checked state - show inner dot */
.poll-vote input[type="radio"]:checked + .w-5.h-5 {
    border-color: #ef4444;
}

.poll-vote input[type="radio"]:checked + .w-5.h-5 .w-2\.5.h-2\.5 {
    transform: scale(1);
}

/* Unchecked state - hide inner dot */
.poll-vote input[type="radio"]:not(:checked) + .w-5.h-5 .w-2\.5.h-2\.5 {
    transform: scale(0);
}

/* Hover effects */
.poll-vote label:hover .w-5.h-5 {
    border-color: #d1d5db;
}

.poll-vote label:hover .w-2\.5.h-2\.5 {
    background: #f87171;
}

/* Focus state */
.poll-vote input[type="radio"]:focus + .w-5.h-5 {
    box-shadow: 0 0 0 3px rgba(177, 19, 63, 0.3);
}

/* Active state */
.poll-vote label:active .w-5.h-5 {
    transform: scale(0.95);
}

/* Disabled state */
.poll-vote input[type="radio"]:disabled + .w-5.h-5 {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #6b7280;
}

.poll-vote input[type="radio"]:disabled ~ span {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Animation for radio selection */
.poll-vote input[type="radio"]:checked + .w-5.h-5 .w-2\.5.h-2\.5 {
    animation: radioPulse 0.3s ease-out;
}

@keyframes radioPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.flow-post-actions button:hover {
    transform: translateY(-1px);
}

/* Reactions dropdown */
.reactions-drop {
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(55, 65, 81, 0.95);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.reactions-drop button:hover {
    background-color: rgba(107, 114, 128, 0.5);
    transform: scale(1.1);
}

/* Options dropdown */
.options-drop-content {
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(156, 163, 175, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.options-drop-content button:hover,
.options-drop-content a:hover {
    background-color: rgba(55, 65, 81, 0.7);
}

/* Post edit modal */
.post-edit-modal {
    backdrop-filter: blur(5px);
}

/* Image upload preview */
.image-upload-preview {
    border: 2px dashed #6b7280;
    transition: border-color 0.3s ease;
}

.image-upload-preview:hover {
    border-color: #7c3aed;
}

.result-images .relative:hover .remove-image {
    opacity: 1;
}

/* Poll styles */
.poll-vote input[type="radio"]:checked + div {
    border-color: #7c3aed;
    background-color: rgba(124, 58, 237, 0.1);
}

.poll-vote input[type="radio"]:checked + div .poll-indicator {
    opacity: 1;
    background-color: #7c3aed;
}

.poll-result .progress-bar {
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    transition: width 0.8s ease-in-out;
}

/* Loading spinner */
.flow-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    border-top-color: #7c3aed;
    animation: spin 1s ease-in-out infinite;
}

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

/* Post content */
.post-content {
    word-wrap: break-word;
    word-break: break-word;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Post images grid layouts */
.post-images {
    display: grid;
    gap: 0.5rem;
}

.post-images.single {
    grid-template-columns: 1fr;
}

.post-images.double {
    grid-template-columns: 1fr 1fr;
}

.post-images.triple {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.post-images.triple img:first-child {
    grid-row: 1 / -1;
}

.post-images.quad {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.post-images.many {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.post-images.many img:first-child {
    grid-row: 1 / -1;
}

/* Post meta info */
.post-meta-info {
    font-size: 0.875rem;
    color: #9ca3af;
}

.post-meta-info a:hover {
    color: #7c3aed;
}

/* Comment thread */
.comment-thread {
    border-left: 2px solid #374151;
    margin-left: 1rem;
    padding-left: 1rem;
}

.comment-thread:hover {
    border-left-color: #7c3aed;
}

/* Action button effects */
.action-button {
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.action-button:hover::before {
    left: 100%;
}

/* Tab content animation */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

/* Comments reply animation */
.comments-reply {
    animation: slideDown 0.3s ease-in-out;
}

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

/* Post article hover effect */
.post-article {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* User badges */
.user-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-weight: 500;
}

.user-badge.admin {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.user-badge.moderator {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.user-badge.vip {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Floating buttons */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}

.floating-buttons button {
    transition: all 0.3s ease;
}

.floating-buttons button:hover {
    transform: scale(1.1);
}

/* Reddit-style voting */
.vote-up:hover svg,
.vote-down:hover svg {
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.vote-up.voted svg {
    color: #f97316 !important;
    animation: vote-pulse 0.3s ease;
}

.vote-down.voted svg {
    color: #3b82f6 !important;
    animation: vote-pulse 0.3s ease;
}

@keyframes vote-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.vote-count {
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}


.create-post-trigger {
    transition: all 0.3s ease;
}

.create-post-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(177, 19, 63, 0.3);
}

/* Comment sections */
.add-comment {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    margin-top: 1rem;
}

.comments-reply {
    background: #1c2430;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flow-write-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-images.triple,
    .post-images.quad,
    .post-images.many {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .post-images.triple img:first-child,
    .post-images.many img:first-child {
        grid-row: auto;
    }
    
    .comment-thread {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
    
    /* Mobile vote section */
    .flex-shrink-0 {
        min-width: 3rem;
    }
    
    .vote-up, .vote-down {
        padding: 0.25rem;
    }
    
    .vote-up svg, .vote-down svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Fade in animation for new comments */
.fadeIn {
    animation: fadeIn 0.3s ease-in;
}

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