.my-stories-container {
    min-height: calc(100vh - 200px);
    padding: 2rem;
    background-color: var(--secondary-color);
    margin-top: 80px;
}

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

.stories-header h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin: 0;
}

.create-story-btn {
    background-color: var(--accent-color);
    color: var(--surface-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.create-story-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.create-story-btn i {
    font-size: 1.2rem;
}

.stories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.story-card {
    background-color: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.story-content {
    padding: 1.5rem;
}

.story-title {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 0 0 1rem;
    font-weight: bold;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-size: 0.9rem;
}

.story-date {
    color: var(--text-color-light);
}

.story-stats {
    display: flex;
    gap: 1rem;
}

.story-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.story-stat i {
    color: var(--accent-color);
}

/* No Stories Message */
.no-stories-message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
    margin-top: -80px; /* Match login-section margin */
}

.no-stories-message .login-content {
    text-align: center;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    transform: translateY(40px);
}

.no-stories-message i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.no-stories-message h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.no-stories-message p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.no-stories-message .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Mobile Responsiveness for No Stories Message */
@media (max-width: 768px) {
    .no-stories-message .login-content {
        padding: 2rem;
    }

    .no-stories-message h2 {
        font-size: 1.5rem;
    }

    .no-stories-message p {
        font-size: 1rem;
    }
}

.story-actions {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.story-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: var(--surface-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.story-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.story-action-btn.share {
    color: var(--accent-color);
}

.story-action-btn.delete {
    color: #ff4444;
}

.story-action-btn i {
    font-size: 1.1rem;
}

.story-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.story-status.completed {
    color: #4CAF50;
}

.story-status i {
    font-size: 1rem;
}

.story-progress {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-color-light);
    display: block;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .my-stories-container {
        padding: 1rem;
    }

    .stories-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stories-header h1 {
        font-size: 2rem;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .story-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .story-actions {
        top: 0.75rem;
        left: 0.75rem;
    }

    .story-action-btn {
        width: 32px;
        height: 32px;
    }

    .story-action-btn i {
        font-size: 1rem;
    }

    .story-status {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .story-status i {
        font-size: 0.9rem;
    }

    .progress-bar {
        height: 4px;
    }

    .progress-text {
        font-size: 0.8rem;
    }
}

/* Login Section Styles */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
    margin-top: -80px; /* Offset the navbar height */
}

.login-content {
    text-align: center;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    transform: translateY(40px); /* Fine-tune vertical position */
}

.login-content i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.login-content h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.login-content p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

#btn-login-my-stories {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

#btn-login-my-stories i {
    font-size: 1.1rem;
    margin: 0;
}

/* Show/hide sections based on auth state */
.logged-in-only {
    display: none;
}

.logged-out-only {
    display: block;
}

body.logged-in .logged-in-only {
    display: block;
}

body.logged-in .logged-out-only {
    display: none;
}

/* Mobile Responsiveness for Login Section */
@media (max-width: 768px) {
    .login-content {
        padding: 2rem;
    }

    .login-content h2 {
        font-size: 1.5rem;
    }

    .login-content p {
        font-size: 1rem;
    }
}

.continue-story-btn,
.view-story-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: var(--surface-color);
    border: none;
    border-radius: 20px;
    padding: 0.6rem 1rem;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.continue-story-btn:hover,
.view-story-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.continue-story-btn i,
.view-story-btn i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .continue-story-btn,
    .view-story-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-overlay p {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
}

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

