/**
 * Additional Styles
 * Barbarian Lands - Page-specific and utility styles
 */

/* ==========================================
   Page-Specific Styles
   ========================================== */

/* Page Hero (for content pages) */
.page-hero {
    background: linear-gradient(135deg, var(--bg-dark-lighter), var(--bg-dark));
    padding: 100px 0 60px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* About Page */
.about-content,
.contact-content,
.marketplace-content,
.news-content {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-text h3 {
    color: var(--primary-color);
    margin-top: 30px;
    font-size: 1.5rem;
}

.content-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* Game Story Section */
.game-story {
    background: var(--bg-dark-lighter);
    padding: 80px 0;
    text-align: center;
}

.game-story h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.game-story p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    text-align: center;
}

.team-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.company-links {
    margin-top: 30px;
}

/* Coming Soon Card */
.coming-soon-card {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-dark-lighter);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-color);
}

.coming-soon-card i {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.coming-soon-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.coming-soon-card .features-list {
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
}

.features-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(201, 162, 62, 0.2);
    font-size: 1.1rem;
}

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

.features-list i {
    color: var(--primary-color);
    margin-right: 15px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: var(--bg-dark-lighter);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(201, 162, 62, 0.2);
    transition: var(--transition-normal);
}

.news-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-info {
    padding: 25px;
}

.news-date {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.news-date i {
    margin-right: 5px;
}

.news-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.news-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Newsletter CTA Inline */
.newsletter-cta-inline {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-dark-lighter);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-color);
}

.newsletter-cta-inline h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-item a {
    color: var(--text-secondary);
}

.social-links-large {
    margin-top: 40px;
}

.social-links-large h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-form-wrapper {
    background: var(--bg-dark-lighter);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201, 162, 62, 0.2);
}

.contact-form-wrapper h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid rgba(201, 162, 62, 0.3);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    outline: none;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Error Page */
.error-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    line-height: 1;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.error-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-image {
    margin-top: 60px;
}

.error-image i {
    font-size: 8rem;
    color: rgba(201, 162, 62, 0.3);
}

/* ==========================================
   Utility Classes
   ========================================== */

/* Spacing */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.5rem !important; }
.pt-2 { padding-top: 1rem !important; }
.pt-3 { padding-top: 1.5rem !important; }
.pt-4 { padding-top: 2rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.5rem !important; }
.pb-2 { padding-bottom: 1rem !important; }
.pb-3 { padding-bottom: 1.5rem !important; }
.pb-4 { padding-bottom: 2rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }

/* Flex Utilities */
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

/* Colors */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-white { color: var(--text-primary) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }
.bg-dark-lighter { background-color: var(--bg-dark-lighter) !important; }

/* Borders */
.border { border: 1px solid rgba(201, 162, 62, 0.2) !important; }
.border-primary { border-color: var(--primary-color) !important; }
.border-0 { border: 0 !important; }

/* Rounded */
.rounded { border-radius: var(--radius-md) !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-circle { border-radius: 50% !important; }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Width */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }

/* Responsive Utilities */
@media (max-width: 768px) {
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Field Error Messages */
.field-error {
    display: block;
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
}

.input-wrapper input.error {
    border-color: #ff6b6b;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

