/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #000000;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #2f3336;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 53px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.header-left {
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.logo:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logo svg {
    width: 24px !important;
    height: 24px !important;
    fill: #ffffff !important;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    max-width: 400px;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #71767b;
    font-size: 16px;
}

.search-bar input {
    width: 100%;
    height: 40px;
    background-color: #16181c;
    border: 1px solid #2f3336;
    border-radius: 20px;
    padding: 0 16px 0 44px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    background-color: #000000;
    border-color: #1d9bf0;
}

.search-bar input::placeholder {
    color: #71767b;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.header-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-btn {
    width: 32px;
    height: 32px;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

/* Main Content */
.main-content {
    padding: 20px;
}

.violation-card {
    background-color: #000000;
    border: 1px solid #2f3336;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Violation Header */
.violation-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2f3336;
}

.header-logo {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.header-logo svg {
    width: 48px;
    height: 48px;
    fill: #ffffff;
}

.warning-icon {
    font-size: 48px;
    color: #f39c12;
    margin-bottom: 16px;
    display: block;
}

.violation-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

/* Violation Description */
.violation-description {
    margin-bottom: 24px;
}

.violation-description p {
    color: #71767b;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.violation-details {
    background-color: #16181c;
    border-radius: 12px;
    padding: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #71767b;
    font-size: 14px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    color: #ffffff;
    width: 16px;
}

.detail-item strong {
    color: #ffffff;
}

.status-warning {
    color: #f39c12 !important;
}

/* Violated Post */
.violated-post {
    margin-bottom: 24px;
}

.violated-post h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.post-container {
    background-color: #16181c;
    border: 1px solid #2f3336;
    border-radius: 16px;
    padding: 16px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.display-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.username {
    color: #71767b;
    font-size: 14px;
}



.post-time {
    color: #71767b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-content {
    margin-bottom: 16px;
}

.post-content p {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
}

.post-image {
    margin-bottom: 16px;
}

.post-image img {
    width: 100%;
    border-radius: 16px;
    max-width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    background-color: #16181c;
    border: 2px dashed #2f3336;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #71767b;
}

.image-placeholder i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.image-placeholder span {
    font-size: 14px;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #2f3336;
    margin-top: 16px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #71767b;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.action-item:hover {
    color: #ffffff;
}

.action-item i {
    font-size: 16px;
}

/* Action Buttons */
.action-buttons {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background-color: #e6e6e6;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: #000000;
    border-top: 1px solid #2f3336;
    padding: 16px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-link {
    color: #71767b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-copyright {
    color: #71767b;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }

    .main-content {
        padding: 16px;
    }

    .violation-card {
        padding: 20px;
    }

    .post-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .post-time {
        align-self: flex-start;
    }

    .header-content {
        padding: 0 12px;
    }

    .search-bar {
        max-width: 250px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-link {
        font-size: 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.violation-card {
    animation: fadeIn 0.5s ease-out;
}

/* Hover Effects */
.post-container:hover {
    transition: border-color 0.2s ease;
}

.detail-item:hover {
    color: #ffffff;
    transition: color 0.2s ease;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    background-color: #000000;
    border: 1px solid #2f3336;
    border-radius: 16px;
    max-width: 420px;
    width: 85%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    position: relative;
}

.popup-close-btn {
    background: none;
    border: none;
    color: rgb(239, 243, 244);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.popup-close-btn:hover {
    background-color: rgba(239, 243, 244, 0.1);
}

.popup-close-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.center-logo svg {
    width: 24px;
    height: 24px;
    fill: rgb(239, 243, 244);
}

/* Modal Body */
.modal-body {
    padding: 32px;
}

.form-container {
    max-width: 100%;
}

.form-container h1 {
    color: rgb(239, 243, 244);
    font-size: 31px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.text-x-gray {
    color: rgb(113, 118, 123);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 32px;
}

/* User Profile Section */
.user-profile-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
    /* Reduced from 24px to match popup */
    padding: 16px;
    background-color: transparent;
    border-radius: 16px;
    border: none;
}

.user-profile-section img {
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-section .user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    height: 48px;
}

/* Popup specific styles - OVERRIDE ALL MAIN PAGE STYLES */
.popup-content .user-profile-section {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 4px !important;
    /* Reduced from 8px */
    padding: 16px !important;
    background-color: transparent !important;
    border-radius: 16px !important;
    border: none !important;
}

.popup-content .user-profile-section .user-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    justify-content: center !important;
    height: 48px !important;
    align-items: flex-start !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.popup-content .user-profile-section img[id^="popup-profile-picture"] {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    margin-top: -28px !important;
}

.popup-content .user-profile-section .user-name-section {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.popup-content .user-profile-section .x-user-name {
    color: rgb(239, 243, 244) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.popup-content .user-profile-section .text-x-gray {
    color: rgb(113, 118, 123) !important;
    font-size: 14px !important;
}

.user-name-section {
    display: flex;
    align-items: center;
    gap: 4px;
}

.x-user-name {
    color: rgb(239, 243, 244);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.verified-icon {
    display: flex;
    align-items: center;
}

.verified-badge {
    width: 16px;
    height: 16px;
    fill: rgb(29, 155, 240);
}

/* Form Floating Input */
.form-floating {
    position: relative;
    margin-bottom: 24px;
}

.form-control {
    width: 100%;
    height: 56px;
    background-color: transparent;
    border: 1px solid rgb(51, 54, 57);
    border-radius: 4px;
    padding: 20px 16px 8px 16px;
    color: rgb(239, 243, 244);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

/* Textarea iÃ§in Ãķzel stiller */
.form-control[type="file"] {
    height: auto;
    padding: 12px 16px;
}

.form-control[rows] {
    height: auto;
    min-height: 120px;
    resize: vertical;
    overflow-y: auto;
}

.form-control:focus {
    border-color: rgb(29, 155, 240);
}

.form-control::placeholder {
    color: transparent;
}

.form-floating label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: rgb(113, 118, 123);
    font-size: 16px;
    transition: all 0.2s ease;
    pointer-events: none;
    background-color: transparent;
    font-weight: 400;
}

.form-control:focus+label {
    top: 10px;
    font-size: 12px;
    color: rgb(29, 155, 240);
    font-weight: 500;
}

.form-control:not(:placeholder-shown):not(:focus)+label {
    top: 10px;
    font-size: 12px;
    color: rgb(113, 118, 123);
    font-weight: 500;
}

/* Password Toggle */
.togglePassword {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.togglePassword:hover {
    background-color: rgba(239, 243, 244, 0.1);
}

.togglePassword svg {
    width: 20px;
    height: 20px;
    fill: rgb(113, 118, 123);
    transition: fill 0.2s ease;
}

/* Form Row */
.form-row {
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px;
}

.btn-dark {
    background-color: rgb(239, 243, 244);
    color: rgb(15, 20, 25);
}

.btn-dark:hover {
    background-color: rgb(215, 219, 220);
}

.btn-dark:disabled {
    background-color: rgb(83, 100, 113);
    color: rgb(113, 118, 123);
    cursor: not-allowed;
}

.btn-disabled {
    background-color: rgb(83, 100, 113) !important;
    color: rgb(113, 118, 123) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.btn-disabled:hover {
    background-color: rgb(83, 100, 113) !important;
    color: rgb(113, 118, 123) !important;
    opacity: 0.6 !important;
}

.btn-dark:not(.btn-disabled) {
    background-color: rgb(239, 243, 244) !important;
    color: rgb(15, 20, 25) !important;
    cursor: pointer !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.btn-dark:not(.btn-disabled):hover {
    background-color: rgb(215, 219, 220) !important;
}

.w-100 {
    width: 100%;
}

.rounded-pill {
    border-radius: 9999px;
}

/* Popup Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Show popup */
.popup-overlay.show {
    display: flex;
}

/* Waiting Section Styles */
.waiting-content {
    text-align: center;
    padding: 20px 0;
}

/* Error Page Styles */
.error-page .form-control {
    border-color: #ff4444 !important;
}

.error-page .form-control:focus {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 68, 68, 0.25) !important;
}

.error-page .form-control+label {
    color: #ff4444 !important;
}

.error-page .form-control:focus+label {
    color: #ff4444 !important;
}

.error-page .form-control:not(:placeholder-shown):not(:focus)+label {
    color: #ff4444 !important;
}

.error-page .error-message {
    color: #ff4444 !important;
    font-size: 14px;
    margin-top: -20px !important;
    /* Reduced negative value */
    margin-bottom: 16px !important;
    text-align: left !important;
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: -20px;
    /* Reduced negative value */
    margin-bottom: 16px;
    text-align: left;
}

.loading-spinner {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.loading-spinner svg {
    width: 48px;
    height: 48px;
    fill: rgb(29, 155, 240);
    animation: spin 1s linear infinite;
}

.loading-spinner svg path:last-child {
    fill: none;
    stroke: rgb(29, 155, 240);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 31.416;
    stroke-dashoffset: 31.416;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 31.416;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -31.416;
    }
}

.waiting-content h2 {
    color: rgb(239, 243, 244);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.waiting-content p {
    color: rgb(113, 118, 123);
    font-size: 15px;
    line-height: 1.5;
}




/* Loading Spinner */
.loading-spinner {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner svg {
    width: 26px;
    height: 26px;
    animation: spin 1s linear infinite;
}

.loading-spinner svg circle:last-child {
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 45;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -45;
    }
}

/* Ensure the loading section is centered */
.waiting-content {
    text-align: center;
    padding: 14px 0;
}








/* Specific rule for verified-icon images to override other styles */
.verified-icon img {
    width: 22px !important; /* Set to 22px */
    height: 22px !important; /* Set to 22px */
    vertical-align: baseline !important; /* Aligns with text baseline */
    margin-left: 4px !important; /* Consistent spacing */
    transition: transform 0.2s ease, opacity 0.2s ease; /* Smooth hover effect */
    object-fit: contain !important; /* Ensure the image fits without distortion */
}

/* Style for the user-name-section to ensure proper layout */
.user-name-section {
    display: flex;
    align-items: center;
    gap: 4px; /* Space between username and checkmark */
    flex-wrap: nowrap; /* Prevent wrapping on small screens */
}

/* Ensure x-user-name text is consistent and scalable */
.x-user-name {
    color: rgb(239, 243, 244);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1; /* Tighten line height for better alignment */
}

/* Enhance user-profile-section in popup for better spacing */
.popup-content .user-profile-section {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 4px !important;
    padding: 16px !important;
    background-color: transparent !important;
    border-radius: 16px !important;
    border: none !important;
}

/* Add hover effect for interactive feedback */
.verified-icon img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
    opacity: 0.9; /* Subtle fade for elegance */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .verified-icon img {
        width: 20px !important; /* Slightly smaller on mobile */
        height: 20px !important;
    }
    .x-user-name {
        font-size: 14px; /* Adjust username size on mobile */
    }
    .user-name-section {
        gap: 3px; /* Reduce gap on smaller screens */
    }
}