/* Design Roast - Modern Dark Theme */

/* Moderat Extended Font Family */
@font-face {
    font-family: 'Moderat Extended';
    src: url('./fonts/Moderat-Extended-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Moderat Extended';
    src: url('./fonts/Moderat-Extended-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Moderat Extended';
    src: url('./fonts/Moderat-Extended-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Moderat Extended';
    src: url('./fonts/Moderat-Extended-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Moderat Extended';
    src: url('./fonts/Moderat-Extended-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Moderat Extended';
    src: url('./fonts/Moderat-Extended-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

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

body {
    font-family: 'Moderat Extended', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: url('background.jpg') center center/cover no-repeat fixed;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern - Dots */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

/* Additional subtle gradient overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 165, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.main-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 1086px;
    margin: 0 auto;
}

/* Top Navigation */
.top-nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 3rem 0;
    z-index: 100;
    max-width: 1086px;
    width: 100%;
    padding-left: 0;
    padding-right: 3rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffa500;
    letter-spacing: -0.02em;
}

/* Share Dropdown */
.share-dropdown {
    position: relative;
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.share-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.share-menu-header {
    margin-bottom: 1.5rem;
}

.share-menu-header h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.share-menu-header p {
    color: #888888;
    font-size: 0.9rem;
    margin: 0;
}

.share-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.share-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.linkedin-icon {
    background: #0077b5;
    color: #ffffff;
}

.twitter-icon {
    background: #1da1f2;
    color: #ffffff;
}

.copy-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.share-option span {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 1.5rem 3rem 0 3rem;
    gap: 4rem;
    width: 100%;
}

/* Left Content */
.left-content {
    flex: 0 0 auto;
    max-width: 600px;
}

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.subtitle {
    font-size: 1.25rem;
    color: #999999;
    margin-bottom: 3rem;
    line-height: 1.4;
}

.author {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 400;
}

.author a {
    color: #ffa500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Hide mobile stories on desktop */
.mobile-stories {
    display: none;
}

/* Right Content */
.right-content {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 700px;
}

.upload-controls-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
}

.upload-section {
    flex: 1;
    min-width: 300px;
}

.controls-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 200px;
}

/* Upload Area */
.upload-area {
    width: 350px;
    height: 280px;
    background: #2A2A2A;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: rgba(255, 165, 0, 0.3);
    background: #2A2A2A;
}

.upload-area.dragover {
    border-color: #ffa500;
    background: #2A2A2A;
}

.upload-icon {
    font-size: 2.5rem;
    color: #666666;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: #ffa500;
}

.upload-text {
    font-size: 1.1rem;
    color: #999999;
    font-weight: 500;
}

.upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Image Preview */
.upload-preview {
    width: 350px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-preview:hover .preview-overlay {
    opacity: 1;
}

.change-image-btn, .remove-image-btn {
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-image-btn {
    background: #ffa500;
}

.change-image-btn:hover {
    background: #ff8800;
    transform: translateY(-2px);
}

.remove-image-btn {
    background: #dc3545;
}

.remove-image-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Tone Selection */
.tone-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 200px;
}

.tone-option {
    position: relative;
}

.tone-option input[type="radio"] {
    display: none;
}

.tone-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(40, 40, 40, 0.8);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
    justify-content: flex-start;
    font-size: 1.1rem;
}

.tone-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.tone-label {
    font-size: 1.1rem;
    font-weight: 500;
}

.savage-btn {
    border-color: rgba(255, 255, 255, 0.1);
}

.supportive-btn {
    border-color: rgba(255, 255, 255, 0.1);
}

input[type="radio"]:checked + .savage-btn {
    background: rgba(40, 40, 40, 0.9);
    border: 3px solid transparent;
    background-image: 
        linear-gradient(rgba(40, 40, 40, 0.9), rgba(40, 40, 40, 0.9)),
        linear-gradient(45deg, #000000, #ff0000, #000000);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

input[type="radio"]:checked + .supportive-btn {
    background: rgba(40, 40, 40, 0.9);
    border: 3px solid transparent;
    background-image: 
        linear-gradient(rgba(40, 40, 40, 0.9), rgba(40, 40, 40, 0.9)),
        linear-gradient(45deg, #000000, #ffa500, #000000);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

.tone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: rgba(50, 50, 50, 0.9);
}

/* Roast Button */
.roast-btn {
    background: #ffa500;
    border: none;
    color: #000000;
    padding: 1.5rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100px;
    margin-left: auto;
}

.roast-btn:hover {
    background: #ff8800;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.3);
}

.roast-btn:active {
    transform: translateY(-1px);
}

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

/* Footer */
.footer {
    margin-top: auto;
    padding: 16px 2rem 120px 2rem;
}

.footer-content {
    max-width: 1086px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Author positioned on left */
.author {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 400;
    flex-shrink: 0;
}

/* Recent Roasts positioned on right */
.recent-roasts {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 582px;
}

.recent-roast-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: visible;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
                linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)) border-box;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Size variations for different positions - 20% larger */
.recent-roast-item:nth-child(1),
.recent-roast-item:nth-child(5) {
    width: 72px;
    height: 72px;
    border-width: 2px;
}

.recent-roast-item:nth-child(2),
.recent-roast-item:nth-child(4) {
    width: 90px;
    height: 90px;
    border-width: 3px;
}

.recent-roast-item:nth-child(3) {
    width: 108px;
    height: 108px;
    border-width: 4px;
}



.recent-roast-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.recent-roast-item.highlighted {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.recent-roast-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.recent-roast-item[data-tone="savage"]::after {
    content: '👺';
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #0a0a0a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    z-index: 100;
}

.recent-roast-item[data-tone="supportive"]::after {
    content: '🤗';
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ffa500, #ff8800);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #0a0a0a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    z-index: 100;
}

/* Larger badges for bigger circles */
.recent-roast-item:nth-child(2)[data-tone]::after,
.recent-roast-item:nth-child(4)[data-tone]::after {
    width: 28px;
    height: 28px;
    font-size: 14px;
    bottom: -10px;
    right: -10px;
}

.recent-roast-item:nth-child(3)[data-tone]::after {
    width: 32px;
    height: 32px;
    font-size: 16px;
    bottom: -12px;
    right: -12px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 165, 0, 0.2);
    border-left: 3px solid #ffa500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.1rem;
    color: #999999;
}

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

/* Result Overlay */
.result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 2rem;
}

.result-content {
    background: #1a1a1a;
    border-radius: 32px;
    padding: 2.5rem;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.result-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-options {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #999999;
    padding: 0.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.share-btn {
    width: auto;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.close-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.result-body {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.result-image-container {
    flex-shrink: 0;
    width: 200px;
}

.result-preview-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-weight: 400;
    flex: 1;
}

.result-text p {
    white-space: pre-line;
    margin: 0;
    font-weight: 400;
}

/* Error Toast */
.error-toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    z-index: 1100;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Success States */
.btn-success-temp {
    background: rgba(40, 167, 69, 0.9) !important;
    color: white !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 3rem;
    }
    
    .left-content {
        max-width: none;
        text-align: center;
    }
    
    .top-nav {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .content-wrapper {
        padding: 1rem;
        gap: 2rem;
        padding-top: 4.8rem; /* Increased spacing between header and body content by 20% */
        text-align: center;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100vw;
    }
    
    .upload-area,
    .upload-preview {
        width: 100%;
        max-width: min(350px, calc(100vw - 2rem));
        height: 240px;
    }
    
    .upload-controls-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }
    
    .upload-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .controls-section {
        min-width: unset;
        width: 100%;
        max-width: min(350px, calc(100vw - 2rem));
        margin: 0 auto;
    }
    
    .tone-selection {
        width: 100%;
    }
    
    .tone-option {
        width: 100%;
    }
    
    .tone-btn {
        width: 100%;
        max-width: none;
    }
    
    .roast-btn {
        width: 100%;
        max-width: min(350px, calc(100vw - 2rem));
        margin: 0 auto;
    }
    
    /* Footer mobile adjustments */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .recent-roasts {
        display: none; /* Hide footer recent roasts on mobile */
    }
    
    .author {
        order: 1;
    }
    
    .sample-images {
        gap: 0.75rem;
    }
    
    .sample-image {
        width: 50px;
        height: 50px;
    }
    
    .result-content {
        margin: 0;
        padding: 1.5rem;
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        left: 0;
        right: 0;
    }
    
    .result-overlay {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        transform: none !important;
    }
    
    /* Stack image and text vertically on mobile */
    .result-body {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-image-container {
        width: 100%;
        max-width: 300px;
        align-self: center;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .top-nav {
        padding: 1rem;
        flex-direction: row;
        gap: 1.5rem;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    
    .nav-actions {
        display: flex !important;
    }
    
    .share-menu {
        position: fixed;
        top: 6rem;
        left: 1rem;
        right: 1rem;
        bottom: auto;
        transform: none;
        width: calc(100vw - 2rem);
        min-width: 280px;
        max-width: 350px;
        margin: 0 auto;
        background: #1a1a1a !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }
    
    /* Mobile backdrop overlay */
    .share-menu.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: -1;
        backdrop-filter: blur(5px);
    }
    
    .share-options-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .share-option {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 0.75rem;
    }
    
    .share-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .brand {
        font-size: 1.25rem;
    }
    
    /* Hide share button text on mobile header only */
    .top-nav .share-btn span {
        display: none;
    }
    
    /* Show full share button in modal on mobile */
    .result-actions .share-btn span {
        display: inline;
    }
    
    /* Hide subtitle on mobile */
    .subtitle {
        display: none;
    }
    
    /* Mobile Stories - Instagram style */
    .mobile-stories {
        display: block;
        margin-top: 2rem;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        text-align: left; /* Override center alignment for horizontal scrolling */
    }
    
    .stories-container {
        display: flex;
        gap: 1rem;
        padding: 0.5rem 1rem 0.5rem 0;
        width: max-content;
        min-width: 100%;
    }
    
    .story-item {
        flex-shrink: 0;
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .story-item:active {
        transform: scale(0.95);
    }
    
    .story-ring {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        padding: 3px;
        background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .story-ring img {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        border: 3px solid #1a1a1a;
        object-fit: cover;
    }
    
    .story-ring-active {
        background: linear-gradient(45deg, #FFD700, #FFA500);
    }
    
    /* Tone badges for mobile stories */
    .story-item[data-tone="savage"] .story-ring::after {
        content: "👺";
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 20px;
        height: 20px;
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid #1a1a1a;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
    }
    
    .story-item[data-tone="supportive"] .story-ring::after {
        content: "🤗";
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 20px;
        height: 20px;
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid #1a1a1a;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
    }
}

/* Mobile specific styles */
@media (max-width: 767px) {
    .share-menu {
        position: fixed;
        top: 6rem;
        left: 1rem;
        right: 1rem;
        bottom: auto;
        transform: none;
        width: calc(100vw - 2rem);
        min-width: 280px;
        max-width: 350px;
        margin: 0 auto;
        background: #1a1a1a !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
        z-index: 1001;
    }
    
    /* Mobile backdrop overlay */
    .share-menu.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: -1;
        backdrop-filter: blur(5px);
    }
}

/* Desktop screens (768px and above) */
@media (min-width: 768px) {
    .stories {
        display: none;
    }
    
    .share-menu {
        position: absolute;
        top: 100%;
        right: 0;
        bottom: auto;
        left: auto;
        transform: none;
        min-width: 280px;
        max-width: none;
    }
}

/* Hidden utility */
.d-none {
    display: none !important;
}

/* Animations */
.content-wrapper {
    animation: fadeInUp 0.8s ease-out;
}

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

.result-overlay {
    animation: fadeIn 0.3s ease-out;
}

.result-content {
    animation: slideInUp 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.error-toast {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}