/* Memish - AI-Powered Meme Generator Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #9333EA 100%);
    min-height: 100vh;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    gap: 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.wallet-btn {
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 0.9rem;
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.user-menu {
    display: flex;
    align-items: center;
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Crypto Ticker Styles */
.crypto-ticker-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.crypto-ticker {
    display: flex;
    position: relative;
}

.ticker-content {
    display: flex;
    gap: 3rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    animation: scroll var(--ticker-duration, 240s) linear infinite;
    will-change: transform;
    --ticker-duration: 240s;
}

.crypto-ticker-container:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-symbol {
    font-weight: 700;
}

.ticker-price {
    color: #10B981;
}

.ticker-change.negative {
    color: #EF4444;
}

.ticker-change.positive {
    color: #10B981;
}

/* Special styling for $MEMISH token */
.ticker-item.memish-token {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid #FFD700;
    animation: glow 2s ease-in-out infinite alternate;
}

.ticker-item.memish-token .ticker-symbol {
    color: #1a1a1a;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ticker-item.memish-token .ticker-price {
    color: #1a1a1a;
    font-weight: 700;
}

.ticker-item.memish-token .ticker-change {
    color: #1a1a1a;
    font-weight: 700;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    to {
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.8);
    }
}

@keyframes scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Main Content */
.main {
    padding: 3rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 3rem;
}

.logo {
    margin-bottom: 1rem;
}

.logo-text {
    font-size: 4rem;
    font-weight: 800;
    display: inline-block;
}

.letter {
    display: inline-block;
    animation: bounce 2s infinite;
}

.letter.m1, .letter.m2 {
    color: #FF6B35;
}

.letter.e1 {
    color: #F7931E;
    animation-delay: 0.1s;
}

.letter.i {
    color: #FFCD3C;
    animation-delay: 0.2s;
}

.letter.s {
    color: #35D0BA;
    animation-delay: 0.3s;
}

.letter.h {
    color: #5B8DEF;
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.tagline {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contract-address {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Courier New', monospace;
    margin-bottom: 2rem;
    display: inline-block;
    font-size: 0.9rem;
}

/* Search Container */
.search-container {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
    font-family: 'Roboto', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #8B5CF6;
}

.output-mode-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.mode-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.mode-option:hover {
    background-color: rgba(139, 92, 246, 0.1);
}

.mode-option input[type="radio"] {
    margin: 0;
}

.mode-label {
    font-weight: 500;
    color: #333;
}

.search-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Roboto', sans-serif;
}

.search-btn.primary {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    color: white;
}

.search-btn.secondary {
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    color: white;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

#meme-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#meme-input:focus {
    outline: none;
    border-color: #667eea;
}

#output-mode {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    color: #333;
}

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

/* Quick Actions */
.quick-actions {
    margin-bottom: 3rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    text-align: left;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.action-card h3 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.action-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #333;
}

/* Meme Display Modal */
#meme-content {
    text-align: center;
    margin-bottom: 2rem;
}

.generated-image, .generated-video {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Image Upload Modal */
.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2rem;
    background: #f8f9ff;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
}

.upload-area.dragover {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

#image-preview {
    margin: 1rem 0;
    text-align: center;
}

#image-preview img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#upload-prompt {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
    resize: vertical;
    min-height: 100px;
}

#upload-output-mode {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    margin-bottom: 1.5rem;
}

/* Loading State */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Crypto Ticker */
.crypto-ticker {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    color: white;
    margin-right: 2rem;
    font-weight: 500;
}

@keyframes scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Footer Styles */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

/* Hidden Elements */
.hidden {
    display: none !important;
}

#file-input {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .search-container {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Wall of Memes - Midjourney Inspired */
.wall-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.wall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wall-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wall-subtitle {
    color: #888;
    margin: 5px 0 0 0;
    font-size: 1rem;
}

.wall-actions {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: translateY(-1px);
}

/* Masonry Grid Layout - Midjourney Style */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 10px;
    gap: 15px;
    margin-bottom: 40px;
    align-items: start;
}

/* Dynamic grid item sizing for varied layouts - Enhanced Midjourney Style */
.masonry-item:nth-child(3n+1) .meme-container {
    grid-row-end: span 35 !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.masonry-item:nth-child(4n+2) .meme-container {
    grid-row-end: span 50 !important;
    background: rgba(102, 126, 234, 0.1) !important;
}

.masonry-item:nth-child(5n+3) .meme-container {
    grid-row-end: span 42 !important;
    background: rgba(255, 107, 53, 0.08) !important;
}

.masonry-item:nth-child(6n+4) .meme-container {
    grid-row-end: span 60 !important;
    background: rgba(167, 139, 250, 0.1) !important;
}

.masonry-item:nth-child(7n+5) .meme-container {
    grid-row-end: span 28 !important;
    background: rgba(34, 197, 94, 0.08) !important;
}

.masonry-item:nth-child(8n+6) .meme-container {
    grid-row-end: span 45 !important;
    background: rgba(251, 191, 36, 0.08) !important;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 10px;
    }
    
    .masonry-item:nth-child(3n+1) .meme-container {
        grid-row-end: span 20;
    }
    
    .masonry-item:nth-child(4n+2) .meme-container {
        grid-row-end: span 28;
    }
    
    .masonry-item:nth-child(5n+3) .meme-container {
        grid-row-end: span 24;
    }
    
    .masonry-item:nth-child(6n+4) .meme-container {
        grid-row-end: span 32;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

.masonry-item {
    break-inside: avoid;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.meme-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    break-inside: avoid;
    page-break-inside: avoid;
}

.meme-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.meme-container:hover .meme-overlay {
    opacity: 1;
}

.meme-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
    border-radius: 8px;
}

.meme-container:hover .meme-image {
    transform: scale(1.05);
}

.meme-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.meme-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.like-btn:hover {
    background: rgba(255, 107, 107, 0.3);
}

.share-btn:hover {
    background: rgba(102, 126, 234, 0.3);
}

.download-btn:hover {
    background: rgba(72, 187, 120, 0.3);
}

.meme-info {
    padding: 15px;
}

.meme-prompt {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meme-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.meme-creator {
    color: #667eea;
    font-weight: 500;
}

/* Empty State */
.empty-wall {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-wall h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.empty-wall p {
    color: #888;
    margin-bottom: 30px;
}

.generate-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Wall Footer */
.wall-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Meme Modal */
.meme-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
}

.modal-info {
    padding: 20px;
    color: #fff;
}

.modal-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.modal-info p {
    color: #888;
    margin: 0 0 20px 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions button {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions button:hover {
    background: rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Hall of Memes - Pinterest Style */
.hall-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.hall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hall-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hall-subtitle {
    color: #888;
    margin: 5px 0 0 0;
    font-size: 1rem;
}

.hall-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upload-btn, .pin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.upload-btn:hover, .pin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px;
}

.view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 16px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: rgba(102, 126, 234, 0.3);
    color: #fff;
}

.hall-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-tag:hover,
.filter-tag.active {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: translateY(-1px);
}

/* Pinterest Grid Layout */
.pinterest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pinterest-grid.list-view {
    grid-template-columns: 1fr;
}

.pinterest-grid.list-view .pinterest-item {
    display: flex;
    max-height: 200px;
}

.pinterest-grid.list-view .pin-container {
    flex-direction: row;
    height: 100%;
}

.pinterest-grid.list-view .pin-media {
    width: 300px;
    height: 100%;
    object-fit: cover;
}

.pinterest-item {
    break-inside: avoid;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.pin-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.pin-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.pin-container:hover .pin-overlay {
    opacity: 1;
}

.pin-media {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.pin-container:hover .pin-media {
    transform: scale(1.05);
}

.pin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
}

.pin-actions {
    display: flex;
    gap: 8px;
}

.pin-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pin-action-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.visit-btn:hover {
    background: rgba(102, 126, 234, 0.9);
    color: #fff;
}

.save-btn:hover {
    background: rgba(72, 187, 120, 0.9);
    color: #fff;
}

.delete-btn:hover {
    background: rgba(255, 107, 107, 0.9);
    color: #fff;
}

.pin-info {
    padding: 15px;
}

.pin-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pin-description {
    font-size: 14px;
    color: #ccc;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pin-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.pin-source {
    color: #667eea;
    font-weight: 500;
}

.pin-type {
    background: rgba(102, 126, 234, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty Hall State */
.empty-hall {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-hall h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.empty-hall p {
    color: #888;
    margin-bottom: 30px;
}

.empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Upload Modal */
.upload-modal, .pin-modal, .media-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.upload-modal .modal-content,
.pin-modal .modal-content,
.media-modal .modal-content {
    position: relative;
    max-width: 600px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.upload-area {
    padding: 40px 20px;
    text-align: center;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    margin: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-area h3 {
    color: #fff;
    margin-bottom: 10px;
}

.upload-area p {
    color: #888;
    margin-bottom: 20px;
}

.browse-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.upload-form, .pin-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cancel-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.upload-submit-btn, .pin-submit-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.upload-submit-btn:hover, .pin-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Media Modal */
.media-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-media {
    width: 100%;
    height: auto;
    display: block;
}

/* Hall Footer */
.hall-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design for Wall */
@media (max-width: 768px) {
    .wall-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .wall-title h1 {
        font-size: 2rem;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .hall-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .hall-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
    }
    
    .pinterest-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .upload-modal .modal-content,
    .pin-modal .modal-content {
        max-width: 95vw;
        margin: 20px;
    }
}