/* Component-specific styles for D&D Campaign Builder */

/* Landing Page Styles */
.landing-page {
    animation: fadeIn 0.8s ease-in-out;
}

/* Hero Background Section */
.hero-background-section {
    position: relative;
    height: 110vh;
    min-height: 800px;
    background-image: url('../assets/Draftmaster-Forge.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: heroZoomIn 1.2s ease-out;
}

@keyframes heroZoomIn {
    0% { 
        transform: scale(1.05);
        opacity: 0;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(191, 87, 0, 0.4) 30%, 
        rgba(128, 0, 32, 0.5) 70%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.hero-fullscreen-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    padding: 3rem 2rem;
    gap: 3rem;
    text-align: center;
    animation: heroContentFadeIn 1.5s ease-out 0.3s both;
}

@keyframes heroContentFadeIn {
    0% { 
        opacity: 0;
        transform: translateY(40px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text-section {
    animation: heroTextSlideIn 1.8s ease-out 0.5s both;
}

@keyframes heroTextSlideIn {
    0% { 
        opacity: 0;
        transform: translateY(-20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Georgia', serif;
    font-size: 4rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    color: #f8f9fa;
    line-height: 1.4;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 300;
}

.hero-action-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    animation: heroCardsSlideUp 2s ease-out 0.8s both;
}

@keyframes heroCardsSlideUp {
    0% { 
        opacity: 0;
        transform: translateY(60px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Action Cards Container - Now used in hero section */
.action-cards-container,
.hero-action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    justify-items: center;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(191, 87, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 240px;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #BF5700, #800020);
    transform: scaleX(0);
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: #BF5700;
    background: rgba(255, 255, 255, 1);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card.primary-card:hover {
    background: linear-gradient(135deg, #f0fff0, #e8f5e8);
}

.action-card.secondary-card:hover {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
}

.action-card.tertiary-card:hover {
    background: linear-gradient(135deg, #fff8f0, #ffe6e6);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 3s infinite;
    display: block;
}

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

.action-card h3 {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.3;
}

.action-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.action-card .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: var(--transition);
    font-size: 0.9rem;
    margin-top: auto;
}

.action-card .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-background-section {
        height: 100vh;
        min-height: 700px;
        background-attachment: scroll;
    }
    
    .hero-fullscreen-content {
        gap: 2.5rem;
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .hero-action-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        max-width: 800px;
    }
    
    .action-card {
        padding: 1.3rem 0.8rem;
        min-height: 220px;
    }
    
    .action-card h3 {
        font-size: 1.2rem;
    }
    
    .action-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero-background-section {
        height: auto;
        min-height: 100vh;
        background-attachment: scroll;
    }
    
    .hero-fullscreen-content {
        padding: 2rem 1.5rem;
        gap: 2rem;
        justify-content: space-evenly;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-action-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .action-card {
        padding: 1.8rem 1.5rem;
        min-height: 200px;
    }
    
    .action-icon {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .action-card h3 {
        font-size: 1.3rem;
    }
    
    .action-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-background-section {
        min-height: 100vh;
    }
    
    .hero-fullscreen-content {
        padding: 1.5rem 1rem;
        gap: 1.8rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .action-card {
        padding: 1.5rem 1rem;
        min-height: 180px;
    }
    
    .action-card h3 {
        font-size: 1.2rem;
    }
    
    .action-card p {
        font-size: 0.85rem;
    }
}

/* Option Cards */
.option-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.option-card:hover::before {
    transform: scaleX(1);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff8f0, #fef5e7);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.2);
}

.option-card.selected::before {
    transform: scaleX(1);
}

.option-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.option-card.selected .option-card-icon {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.option-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-align: center;
}

.option-card-description {
    color: #6c757d;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.option-card-features {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.feature-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.2rem;
}

/* Campaign Summary Styles */
.summary-section {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.summary-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px 12px 0 0;
}

.summary-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.summary-title i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.summary-content {
    color: var(--text-dark);
    line-height: 1.6;
}

.summary-highlight {
    background: linear-gradient(135deg, #fff8f0, #fef5e7);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin: 1rem 0;
}

/* Saved Campaign Items */
.saved-campaign-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-campaign-item:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.saved-campaign-item.selected {
    background: linear-gradient(135deg, #fff8f0, #fef5e7);
    border-color: var(--primary-color);
}

.campaign-info h6 {
    margin: 0;
    color: var(--text-dark);
}

.campaign-info small {
    color: #6c757d;
}

.campaign-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Campaign Details */
.detail-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.detail-section h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li i {
    color: var(--accent-color);
    width: 20px;
    margin-right: 0.5rem;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .col-xl-3, .col-lg-4, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .option-card {
        margin-bottom: 1rem;
    }
    
    .option-card-icon {
        font-size: 2rem;
    }
    
    .navigation-buttons {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 1rem;
        margin: 0 -15px;
        border-top: 1px solid var(--border-color);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.empty-state h4 {
    margin-bottom: 0.5rem;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

.toast {
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: none;
}

.toast-body {
    padding: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Enhanced UX Polish Styles */
.saved-campaign-item:hover {
    border-color: #BF5700;
    box-shadow: 0 2px 8px rgba(191, 87, 0, 0.1);
}

.saved-campaign-item.selected {
    border-color: #BF5700;
    background-color: rgba(191, 87, 0, 0.05);
}

.toast {
    min-width: 300px;
}

.toast .toast-body {
    display: flex;
    align-items: center;
}

#user-avatar {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

#empty-campaigns-state {
    padding: 2rem;
    text-align: center;
}

#empty-campaigns-state .fa-scroll {
    color: #6c757d;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: #BF5700;
    box-shadow: 0 0 0 0.2rem rgba(191, 87, 0, 0.25);
}

/* ✅ STRETCH GOAL: Campaign Theme Styles */
.theme-forest {
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
    border-color: #228B22 !important;
}

.theme-desert {
    background: linear-gradient(135deg, #fff8dc, #faebd7);
    border-color: #daa520 !important;
}

.theme-dungeon {
    background: linear-gradient(135deg, #2f2f2f, #404040);
    border-color: #666 !important;
    color: #fff;
}

.theme-arctic {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border-color: #4682b4 !important;
}

.theme-ocean {
    background: linear-gradient(135deg, #e0f6ff, #87ceeb);
    border-color: #1e90ff !important;
}

.theme-volcanic {
    background: linear-gradient(135deg, #ffe4e1, #ffa07a);
    border-color: #ff4500 !important;
}

/* Global theme classes for body */
body.theme-forest {
    background: linear-gradient(135deg, #f0fff0, #e8f5e8);
}

body.theme-desert {
    background: linear-gradient(135deg, #fff8dc, #faebd7);
}

body.theme-dungeon {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    color: #ffffff;
}

body.theme-arctic {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
}

body.theme-ocean {
    background: linear-gradient(135deg, #e0f6ff, #b0e0e6);
}

body.theme-volcanic {
    background: linear-gradient(135deg, #ffe4e1, #ffb6c1);
}

/* Campaign icon styling */
.campaign-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Inline editing styles */
.campaign-name-input:focus {
    border-radius: 4px;
    outline: none;
    box-shadow: 0 0 0 2px rgba(191, 87, 0, 0.2);
}

/* Revision history styles */
.revision-item {
    transition: all 0.2s ease;
}

.revision-item:hover {
    background-color: rgba(191, 87, 0, 0.05);
}

/* Undo toast enhancements */
#undo-toast .toast-body {
    font-weight: 500;
}

#undo-delete {
    font-size: 0.8rem;
    border-radius: 15px;
    transition: all 0.2s ease;
}

#undo-delete:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.1);
}

/* Last campaign banner */
#last-campaign-banner {
    border-left: 4px solid #BF5700;
    background: linear-gradient(135deg, #fff8f0, #fef9f3);
}

#last-campaign-banner .btn {
    border-radius: 20px;
    font-weight: 600;
}


