/* Shared Styles for ObjectDash Static Pages */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #FF6B9D 0%, #C06FBB 25%, #5F72BD 50%, #42B883 75%, #FFC837 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    color: var(--heading-color, #C06FBB);
    margin: 2rem 0 1rem;
}

h2:first-child {
    margin-top: 0;
}

h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: #5F72BD;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: #FF6B9D;
}

/* Feature/Mission boxes */
.feature-box,
.mission-box {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(192, 111, 187, 0.1) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--page-accent, #FF6B9D);
}

/* Tip/Info boxes */
.tip-box {
    background: #FFF3CD;
    border-left: 4px solid #FFC837;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.tip-box h3 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.info-box {
    background: rgba(66, 184, 131, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.info-box h3 {
    color: #42B883;
    margin-bottom: 0.5rem;
}

/* Steps */
.step {
    background: linear-gradient(135deg, rgba(95, 114, 189, 0.05) 0%, rgba(66, 184, 131, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid #42B883;
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, #5F72BD 0%, #42B883 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    margin-right: 1rem;
}

.step h3 {
    display: inline;
    font-size: 1.3rem;
    color: #1f2937;
}

.step p {
    margin-top: 0.5rem;
    margin-left: 2.5rem;
    font-size: 1.1rem;
}

/* Cards grid */
.card-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card,
.contact-card {
    background: linear-gradient(135deg, rgba(255, 200, 55, 0.1) 0%, rgba(255, 107, 157, 0.1) 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #FFC837;
    text-align: center;
}

.card h3,
.contact-card h3 {
    font-size: 1.3rem;
    color: #FF6B9D;
    margin-bottom: 1rem;
}

/* Tables */
.data-table,
.scoring-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.data-table th,
.data-table td,
.scoring-table th,
.scoring-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th,
.scoring-table th {
    background: linear-gradient(135deg, #FF6B9D 0%, #C06FBB 100%);
    color: white;
    font-weight: 600;
}

.data-table tr:hover,
.scoring-table tr:hover {
    background: rgba(255, 107, 157, 0.05);
}

/* Forms */
.form-section {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.form-section h2 {
    margin-bottom: 1.5rem;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #FF6B9D;
}

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

/* Buttons */
.btn,
.submit-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FF6B9D 0%, #C06FBB 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 157, 0.3);
    color: white;
}

/* Page-specific accent colors (use CSS custom properties) */
.page-about {
    --page-accent: #FF6B9D;
    --heading-color: #C06FBB;
}

.page-how-to-play {
    --page-accent: #5F72BD;
    --heading-color: #42B883;
}

.page-contact {
    --page-accent: #FFC837;
    --heading-color: #42B883;
}

.page-privacy,
.page-terms {
    --page-accent: #42B883;
    --heading-color: #5F72BD;
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Last updated text */
.last-updated {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

/* Highlight/Important boxes */
.highlight-box {
    background: rgba(255, 107, 157, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #FF6B9D;
    margin: 1.5rem 0;
}

.important-box {
    background: #FEE2E2;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #EF4444;
    margin: 1.5rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .step p {
        margin-left: 0;
    }
    
    .card-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
