/* 
   Gallery Components CSS - Interactive Elements (CONSOLIDATED)
   NO colors (those go in gallery-theme.css)
   NO basic layout (those go in gallery-core.css)
   
   This file contains:
   - Tag system interactions
   - Favorites functionality
   - Search/filter components
   - Form behaviors
   - JavaScript-dependent features
   - Landing page interactive components (moved from landing-page.css)
*/

/* =================================
   TAG SYSTEM COMPONENTS
   ================================= */

/* Tag Container */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
    min-height: 32px;
    align-items: flex-start;
    position: relative;
}

/* Base Tag Structure */
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    height: 28px;
    max-width: 160px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    outline: none;
}

.tag-left {
    padding: 0 8px 0 12px;
    border-radius: 16px 0 0 16px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    cursor: pointer;
}

.tag-right {
    padding: 0 8px;
    border-radius: 0 16px 16px 0;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
    transition: all 0.2s ease;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.1);
}

.tag:hover .tag-right,
.tag.tag-hover .tag-right {
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
}

.tag:hover,
.tag.tag-hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tag:active {
    transform: translateY(0);
}

/* Tag Overflow Management */
.tag-more {
    padding: 0 10px;
    border-radius: 16px;
    font-size: 11px;
    height: 28px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.tag.overflow-hidden {
    display: none;
}

/* Add Tag Interface */
.add-tag-btn {
    border: 1px dashed;
    padding: 0 12px;
    border-radius: 16px;
    font-size: 12px;
    height: 28px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

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

.add-tag-btn:active {
    transform: translateY(0);
}

/* Tag Dropdown */
.add-tag-dropdown {
    position: fixed;
    z-index: 2000;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 16px;
    min-width: 280px;
    max-width: 320px;
    animation: slideIn 0.2s ease;
}

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

.add-tag-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-input {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
    border: 1px solid;
}

.tag-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.tag-input::placeholder {
    opacity: 0.6;
}

.category-select {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    border: 1px solid;
}

.category-select:focus {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.add-tag-buttons {
    display: flex;
    gap: 8px;
}

.add-tag-submit {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s ease;
}

.add-tag-submit:hover {
    transform: translateY(-1px);
}

.add-tag-cancel {
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
}

.add-tag-cancel:hover {
    transform: translateY(-1px);
}

/* Autocomplete Interface */
.autocomplete-results {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 8px;
    margin-top: 4px;
    border: 1px solid;
}

.autocomplete-results:empty {
    display: none;
}

.autocomplete-item {
    padding: 10px 12px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid;
    transition: all 0.2s ease;
}

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

.autocomplete-item:hover {
    transform: translateX(2px);
}

/* Tag Validation */
.tag-validation-feedback {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid;
}

.tag-rules-help {
    margin: 12px 0 8px 0;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid;
}

.tag-rules-help .rules-content strong {
    display: block;
    margin-bottom: 4px;
}

.tag-rules-help ul {
    margin: 4px 0 0 16px;
    padding: 0;
}

.tag-rules-help li {
    margin: 2px 0;
}

.add-tag-submit.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.add-tag-submit:not(.disabled):hover {
    transform: translateY(-1px);
}

/* =================================
   FILTER BAR COMPONENTS
   ================================= */

.filter-bar {
    border-radius: 12px;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: slideDown 0.3s ease;
    border: 1px solid;
}

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

.filter-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.filter-remove {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.filter-tag:hover .filter-remove {
    opacity: 1;
}

.clear-filters {
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* =================================
   SEARCH & FILTER COMPONENTS
   ================================= */

/* Search Input Container */
.search-filter-container {
    padding: 24px 16px;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-input-group {
    margin-bottom: 24px;
}

.search-form {
    width: 100%;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    min-height: 56px;
    border: 3px solid;
}

.search-input-container:focus-within {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    height: 56px;
    padding: 0 24px;
    border: none;
    background: transparent;
    font-family: 'Georgia', serif;
    font-size: 18px;
    line-height: 1.4;
    outline: none;
}

.search-input::placeholder {
    font-style: italic;
    font-size: 16px;
}

.search-clear-btn {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.search-submit-btn {
    width: 56px;
    height: 56px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-submit-btn:hover {
    transform: scale(1.05);
}

.search-submit-btn svg {
    width: 20px;
    height: 20px;
}

/* Controls Row */
.search-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    min-height: 40px;
}

/* Popular Tags Section */
.popular-tags-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.popular-tags-label {
    font-family: 'Georgia', serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 4px;
    flex-shrink: 0;
}

.popular-tags-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-filter-btn {
    padding: 6px 12px;
    border-radius: 16px;
    font-family: 'Georgia', serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.2;
    border: 1px solid;
}

.tag-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-filter-btn.selected {
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.tag-count {
    opacity: 0.8;
    font-size: 10px;
}

/* Right Side Controls */
.right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sort-label {
    font-family: 'Georgia', serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.sort-select {
    padding: 8px 12px;
    border-radius: 20px;
    font-family: 'Georgia', serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    flex-shrink: 0;
    border: 2px solid;
}

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

.sort-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Filters Toggle */
.filters-toggle-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Georgia', serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 2px solid;
}

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

.filters-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.filters-toggle-btn.active .filters-toggle-icon {
    transform: rotate(180deg);
}

/* Collapsible Advanced Filters */
.filter-controls-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.filter-controls-collapsible.expanded {
    max-height: 400px;
}

.filter-controls-row {
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    border: 2px solid;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

.filter-select {
    padding: 10px 12px;
    border-radius: 12px;
    font-family: 'Georgia', serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
}

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

.filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Filter Action Buttons */
.filter-apply-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Georgia', serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: 2px solid;
}

.filter-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter-clear-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Georgia', serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: 2px solid;
}

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

/* Search Results Summary */
.search-results-summary {
    text-align: center;
    padding: 12px 20px;
    border-radius: 20px;
    margin-bottom: 24px;
    font-family: 'Georgia', serif;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid;
}

/* =================================
   FAVORITES SYSTEM COMPONENTS
   ================================= */

/* Inline Favorite Button */
.favorite-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.favorite-btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.favorite-btn-inline:hover {
    transform: scale(1.05);
}

.favorite-btn-inline:active {
    transform: scale(0.95);
}

.favorite-btn-inline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.favorite-btn-inline.login-required:hover {
    transform: scale(1.05);
}

/* Heart Icon Animation */
.heart-icon {
    transition: all 0.2s ease;
}

.favorite-btn-inline:hover .heart-icon {
    transform: scale(1.1);
}

.favorite-btn-inline.favorited .heart-icon {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Enhanced Favorite Button */
.gallery-favorite-btn-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Georgia', serif;
    border: 2px solid;
}

.gallery-favorite-btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-favorite-btn-enhanced:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.gallery-favorite-btn-enhanced .heart-icon {
    width: 20px;
    height: 20px;
}

.gallery-favorite-btn-enhanced .favorite-count {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    background-color: rgba(255,255,255,0.3);
}

/* Favorite Notifications */
.favorite-notification {
    position: fixed;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    max-width: 300px;
    z-index: 10000;
    border: 1px solid;
}

.favorite-notification.login-prompt {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.favorite-notification .login-link {
    text-decoration: none;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.favorite-notification .login-link:hover {
    text-decoration: none;
}

/* Loading States */
.favorite-btn-inline.loading {
    position: relative;
}

.favorite-btn-inline.loading .heart-icon {
    opacity: 0;
}

.favorite-btn-inline.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* =================================
   LANDING PAGE INTERACTIVE COMPONENTS
   ================================= */

/* Preview Card Hover Effects */
.preview-card {
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.thumbnail-card {
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Featured Image Container */
.featured-image-container {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.featured-image-container:hover {
    transform: scale(1.02);
}

/* Call-to-Action Buttons */
.btn-primary {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Georgia', serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid;
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Georgia', serif;
    cursor: pointer;
}

.btn-secondary:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

/* Action Cards */
.action-card {
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Conversion Prompt Animation */
.conversion-prompt {
    animation: slideUp 0.5s ease;
}

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

/* Hero Stats Hover Effects */
.hero-stat {
    transition: transform 0.2s ease;
}

.hero-stat:hover .stat-number {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Hero Action Links */
.hero-action-link {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-action-link:hover {
    transform: translateY(-1px);
    text-decoration: underline;
}

/* Tag Filter Buttons */
.tag-filter-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Notification Hover Effects */
.notification-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    transform: translateX(2px);
}

/* Benefits Link */
.benefits-link {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* =================================
   USER INTERFACE COMPONENTS
   ================================= */

/* User Authentication Header */
.user-auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    min-height: 44px;
    border-bottom: 1px solid;
}

.auth-status {
    flex-shrink: 0;
    margin-left: 16px;
}

.auth-loading {
    font-size: 0.875rem;
    font-style: italic;
    font-family: 'Georgia', serif;
}

/* Login Button */
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Georgia', serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.login-icon {
    flex-shrink: 0;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    border: 2px solid;
}

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

.user-greeting {
    font-weight: 500;
    font-family: 'Georgia', serif;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    margin-left: auto;
}

.user-menu-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 2px solid;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 1rem;
    border-bottom: 2px solid;
}

.user-display-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: 'Georgia', serif;
}

.user-tier {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.tier-label {
    font-family: 'Georgia', serif;
}

.tier-value {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: capitalize;
    font-family: 'Georgia', serif;
    border: 1px solid;
}

.dropdown-menu {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.dropdown-item:hover {
    text-decoration: none;
    transform: translateX(3px);
}

.dropdown-item.active {
    font-weight: bold;
}

.dropdown-item svg {
    transition: all 0.3s ease;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid;
}

/* =================================
   NOTIFICATIONS COMPONENTS
   ================================= */

/* Status Messages */
.status-message {
    padding: 12px 0;
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    z-index: 10;
    border: 2px solid;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.status-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.status-text {
    flex-grow: 1;
    text-align: center;
    font-weight: 500;
}

.status-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    flex-shrink: 0;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}

.status-close:hover {
    opacity: 1;
}

/* Notifications Page */
.notifications-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}

.notifications-title {
    font-size: 2rem;
    margin: 0;
    font-family: 'Georgia', serif;
}

.notifications-count {
    font-size: 1rem;
    font-weight: normal;
}

.notifications-block {
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid;
}

.notification-item {
    padding: 15px 0;
    border-bottom: 1px solid;
    transition: all 0.2s ease;
}

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

.notification-item:hover {
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 4px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 15px;
}

.notification-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
    font-family: 'Georgia', serif;
}

.notification-date {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid;
}

.notification-message {
    line-height: 1.4;
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-family: 'Georgia', serif;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.notification-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-new-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-actions {
    display: flex;
    gap: 12px;
}

.notification-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    font-family: 'Georgia', serif;
}

.notification-link:hover {
    text-decoration: underline;
}

/* =================================
   LANDING PAGE SPECIFIC INTERACTIONS
   ================================= */

/* Announcement Bar Interactions */
.announcements-bar {
    transition: all 0.3s ease;
}

.announcement-item {
    transition: all 0.2s ease;
}

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

/* Hero Update Items */
.hero-update-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-update-item:hover .update-text {
    transform: translateX(2px);
}

/* User Context Bar */
.user-context-bar {
    transition: all 0.3s ease;
}

.context-link {
    transition: all 0.3s ease;
}

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

/* Value Points */
.value-point {
    transition: all 0.3s ease;
}

.value-point:hover {
    transform: translateY(-3px);
}

.value-point:hover .value-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Quick Actions */
.quick-actions .action-card:hover .action-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Activity Stats */
.activity-stat {
    transition: all 0.3s ease;
}

.activity-stat:hover {
    transform: translateY(-2px);
}

.activity-stat:hover .stat-number {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Achievement Badges */
.achievement-badge {
    transition: all 0.3s ease;
}

.achievement-badge:hover {
    transform: translateX(3px);
}

.achievement-badge:hover .achievement-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* =================================
   ANIMATION STATES
   ================================= */

.filtered-out {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tag.hiding {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.tag.showing {
    opacity: 1;
    transform: scale(1);
    transition: all 0.2s ease;
}

.tag-left:hover {
    text-decoration: underline;
}

.tag:focus-visible {
    outline: 2px solid;
    outline-offset: 2px;
}

.add-tag-btn:focus-visible,
.filter-tag:focus-visible {
    outline: 2px solid;
    outline-offset: 2px;
}

.tags-loading {
    opacity: 0.6;
    pointer-events: none;
}

.tag-success {
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading states for various components */
.loading-state, .empty-state {
    text-align: center;
    padding: 40px 20px;
    transition: all 0.3s ease;
}

.loading-state:hover, .empty-state:hover {
    transform: translateY(-2px);
}

/* =================================
   ACCESSIBILITY SUPPORT
   ================================= */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tag,
    .favorite-btn-inline,
    .filter-tag,
    .btn-primary,
    .btn-secondary,
    .action-card,
    .preview-card,
    .thumbnail-card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .tag:hover,
    .favorite-btn-inline:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .action-card:hover,
    .preview-card:hover,
    .thumbnail-card:hover,
    .featured-image-container:hover,
    .hero-action-link:hover,
    .notification-item:hover,
    .value-point:hover,
    .activity-stat:hover {
        transform: none;
    }
}

/* Focus states for keyboard navigation */
.preview-card:focus,
.thumbnail-card:focus,
.action-card:focus,
.btn-primary:focus,
.btn-secondary:focus,
.hero-action-link:focus,
.context-link:focus,
.benefits-link:focus {
    outline: 3px solid;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .add-tag-btn,
    .filter-bar,
    .favorite-btn-inline,
    .user-dropdown,
    .status-message,
    .search-filter-container,
    .filters-toggle-btn,
    .sort-controls,
    .hero-actions,
    .conversion-prompt,
    .notifications-container {
        display: none;
    }
    
    .preview-card,
    .thumbnail-card,
    .action-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .preview-card:hover,
    .thumbnail-card:hover,
    .action-card:hover {
        transform: none;
        box-shadow: none;
    }
}