@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #ff6600;
    --dark-color: #1a1a1a;
    --background-color: #000;
    --light-color: #f4f4f4;
    --glass-bg: rgba(26, 26, 26, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-y: auto;
}

.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #000000, #3d1d00, #000000, #6d3300);
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1100px;
    margin: auto;
    width: 95%;
}

.site-header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.site-description {
    font-size: 1.1rem;
    max-width: 600px;
    color: var(--light-color);
    opacity: 0.8;
}

.form-container, .card-glass {
    width: 100%;
    max-width: 700px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--light-color);
    opacity: 0.9;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--light-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.5);
}

textarea {
    resize: vertical;
}

.btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: #ff8533;
    transform: translateY(-2px);
}

.form-switch {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.form-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-switch a:hover {
    text-decoration: underline;
}

.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}


.main-header .container {
    flex-direction: row;
    align-items: center;
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
    margin-right: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding: 0;
    margin: 0;
}

.nav-item-right {
    margin-left: auto;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.card-glass {
    margin-bottom: 2rem;
}

.post-feed {
    width: 100%;
    max-width: 700px;
}

.post-feed h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.post-card {
    position: relative;
    text-align: left;
    margin-bottom: 1.5rem;
}

.post-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.post-author {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
    font-style: italic;
    opacity: 0.7;
}

.post-content {
    line-height: 1.7;
    white-space: pre-wrap;
}

.no-posts-message {
    text-align: center;
    color: #888;
    padding: 2rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
    max-width: 400px;
}
.btn-secondary:hover {
    background: var(--dark-color);
    border-color: var(--primary-color);
}

.btn-nav {
    width: auto;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.filter-controls span {
    color: #ccc;
    font-weight: 500;
    margin-right: 0.5rem;
}

.filter-btn {
    background: var(--dark-color);
    color: var(--light-color);
    border: 1px solid #444;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.filter-btn:disabled {
    background: #222;
    color: #555;
    cursor: not-allowed;
}

.post-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
}

.post-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.post-actions button {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.post-actions button:hover {
    color: var(--primary-color);
}

.main-app .container {
    justify-content: flex-start;
    padding-top: 2rem;
}

.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ccc;
    background-color: var(--dark-color);
    border: 1px solid #444;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.tag-btn:hover {
    border-color: var(--primary-color);
    color: var(--light-color);
}

.tag-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
}

.post-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    background-color: rgba(255, 102, 0, 0.15);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}


#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    border-radius: 8px;
    background: var(--dark-color);
    color: var(--light-color);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

.toast.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

.toast.success {
    border-left: 5px solid #4CAF50;
}

.toast.error {
    border-left: 5px solid #f44336;
}

.toast.info {
    border-left: 5px solid #2196F3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-box {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: scaleUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--light-color);
}

.modal-box p {
    margin-bottom: 2rem;
    color: #ccc;
    line-height: 1.6;
}

#modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.modal-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--dark-color);
    border: 1px solid var(--border-color);
    color: var(--light-color);
}

.modal-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.modal-btn:hover {
    transform: translateY(-2px);
}

.modal-btn.primary:hover {
    background: #ff8533;
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.owner-badge {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 0.5rem;
    vertical-align: middle;
    text-shadow: none;
}

.moderator-badge {
    background-color: #2196F3;
    color: #fff;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 0.5rem;
    vertical-align: middle;
    text-shadow: none;
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.privacy-link-text {
    font-size: 0.8rem;
    color: #a0a0a0;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.privacy-link-text a {
    color: #ccc;
    text-decoration: underline;
}
.privacy-link-text a:hover {
    color: var(--primary-color);
}

.privacy-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.privacy-content h3:first-of-type {
    margin-top: 1rem;
}
.privacy-content p, .privacy-content ul {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.privacy-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.privacy-content li {
    margin-bottom: 0.5rem;
}

.settings-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-link {
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-link:hover {
    color: var(--light-color);
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInContent 0.5s ease-in-out;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--light-color);
}

.danger-zone {
    border: 2px solid #f44336;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    background-color: rgba(244, 67, 54, 0.05);
}

.danger-zone h4 {
    color: #f44336;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.danger-zone p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-danger {
    background-color: #f44336;
    width: auto;
    padding: 0.8rem 1.5rem;
}

.btn-danger:hover {
    background-color: #e53935;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 1rem;
        width: 100%;
    }

    .form-container, .card-glass {
        padding: 1.5rem;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .main-header .nav-links {
        justify-content: center;
        width: 100%;
    }
    
    .nav-item-right {
        margin-left: 0;
    }

    .settings-tabs {
        flex-direction: column;
    }

    .tab-link {
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
        width: 100%;
        text-align: left;
    }

    .tab-link.active {
        border-bottom-color: var(--border-color);
        border-left-color: var(--primary-color);
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .post-actions {
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .modal-box {
        width: 95%;
        padding: 1.5rem 1rem;
    }

    .tag-selector {
        gap: 0.5rem;
    }

    .tag-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}


.post-actions .quote-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}
.post-actions .quote-btn:hover {
    color: var(--primary-color);
}
.post-actions .quote-btn:disabled {
    color: #555;
    cursor: not-allowed;
}

.quotes-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.quotes-section h4 {
    color: #ccc;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quote-item {
    background: rgba(0,0,0,0.2);
    border-left: 3px solid var(--primary-color);
    padding: 1rem 1.2rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}
.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.quote-author {
    font-weight: 600;
    color: var(--light-color);
}
.quote-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}
.quote-details {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.7;
}
.quote-details strong {
    color: #ddd;
    font-weight: 500;
}

.no-quotes-message {
    color: #888;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

#quote-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}
#quote-modal-container .modal-box {
    animation: scaleUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.currency-selector {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.currency-selector label {
    cursor: pointer;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#quote-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quote-header .delete-quote-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem;
    transition: color 0.3s ease;
    margin-left: auto;
}

.quote-header .delete-quote-btn:hover {
    color: #f44336;
}

.post-card.pinned {
    border-left: 4px solid var(--primary-color);
    background: rgba(255, 102, 0, 0.05);
}

.pinned-indicator {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.pinned-indicator .fa-thumbtack {
    font-size: 0.9rem;
    margin-right: 0.3rem;
}

.post-actions .pin-btn {
    color: var(--primary-color);
}

.account-recovery{
    max-width:700px;
    width:100%;
    text-align:left;
    margin:2.5rem 0 2rem;
}
.account-recovery h3{
    color:var(--primary-color);
    font-size:1.4rem;
    margin-bottom:1rem;
    font-weight:600;
}
.account-recovery p{
    line-height:1.7;
    color:#ccc;
    margin-bottom:0.75rem;
}
.account-recovery a{
    color:var(--primary-color);
    text-decoration:underline;
}
.recovery-warning{
    color:#f44336;
    font-weight:600;
}
