/* Gift Exchange - Modern Landing Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2ecc71;
    --accent-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    color: var(--white);
    text-align: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.gift-icon {
    font-size: 8rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    background: none;
    font-size: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--text-dark);
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Features Section */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    background: var(--background-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    opacity: 0.8;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error {
    background: #fff5f5;
    color: #c53030;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #fed7d7;
    margin-bottom: 1rem;
}

.success {
    background: #f0fff4;
    color: #22543d;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #9ae6b4;
    margin-bottom: 1rem;
}

.form-help {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Dashboard Styles */
.dashboard {
    padding: 3rem 0;
    background: var(--gray-50);
    min-height: calc(100vh - 180px);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    color: var(--gray-900);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--gray-600);
    font-size: 1.2rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.exchanges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.exchange-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exchange-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.exchange-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.exchange-header h3 {
    color: var(--gray-900);
    font-size: 1.4rem;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.exchange-status {
    white-space: nowrap;
}

.status-active, .status-setup {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background: var(--success-light);
    color: var(--success-dark);
}

.status-setup {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.exchange-details {
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--gray-600);
    font-weight: 500;
}

.detail-item > span:last-child {
    color: var(--gray-900);
    font-weight: 600;
}

.exchange-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.invite-link {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.invite-link label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.link-copy {
    display: flex;
    gap: 0.5rem;
}

.link-copy input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--white);
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.error-message {
    background: var(--error-light);
    color: var(--error-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--error-color);
}

/* Status colors */
:root {
    --success-light: #d4edda;
    --success-dark: #155724;
    --warning-light: #fff3cd;
    --warning-dark: #856404;
    --error-light: #f8d7da;
    --error-dark: #721c24;
}

/* Exchange Detail Styles */
.exchange-detail {
    padding: 2rem 0;
    background: var(--gray-50);
    min-height: calc(100vh - 180px);
}

.detail-header {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.header-content h1 {
    color: var(--gray-900);
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.exchange-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.invite-section {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.invite-section h3 {
    color: var(--primary-dark);
    margin: 0 0 0.5rem 0;
}

.invite-section p {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.detail-card h3 {
    color: var(--gray-900);
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.empty-content {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-600);
}

.empty-content p {
    margin-bottom: 1rem;
}

.participants-list, .groups-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.participant-name {
    font-weight: 600;
    color: var(--gray-900);
}

.group-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.assignment-info {
    color: var(--success-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.group-name {
    font-weight: 600;
    color: var(--gray-900);
}

.member-count {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.status-card {
    grid-column: 1 / -1;
}

.status-incomplete, .status-complete {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.status-incomplete {
    background: var(--warning-light);
    border-left: 4px solid var(--warning-dark);
}

.status-complete {
    background: var(--success-light);
    border-left: 4px solid var(--success-dark);
}

.status-icon {
    font-size: 2rem;
}

.status-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--gray-900);
}

.status-content p {
    margin: 0;
    color: var(--gray-700);
}

.status-stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-section {
    padding: 4rem 0;
    background: var(--gray-50);
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
}

.error-section .error-message {
    text-align: center;
    padding: 3rem;
}

.error-section .error-message h2 {
    color: var(--error-dark);
    margin-bottom: 1rem;
}

/* Responsive Design for Detail Page */
@media (max-width: 968px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .exchange-meta {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .header-actions {
        flex-direction: column;
    }
    
    .exchange-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .status-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .participant-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Participant Experience Styles */
.participant-welcome {
    padding: 3rem 0;
    background: var(--gray-50);
    min-height: calc(100vh - 180px);
}

.welcome-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.welcome-header h1 {
    color: var(--gray-600);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
}

.welcome-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
}

.exchange-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}

.detail .icon {
    font-size: 1.2rem;
}

.status-waiting {
    padding: 2rem;
    background: var(--warning-light);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    text-align: center;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.status-waiting h3 {
    color: var(--warning-dark);
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.status-waiting p {
    color: var(--gray-700);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.status-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.status-info strong {
    color: var(--gray-900);
    display: block;
    margin-bottom: 0.75rem;
}

.status-info ul {
    margin: 0;
    padding-left: 1.5rem;
}

.status-info li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.participation-ready h3 {
    color: var(--gray-900);
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.participation-ready p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.participant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.participant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--primary-light);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 120px;
}

.participant-card:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.participant-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.participant-card:hover .participant-name {
    color: var(--white);
}

.participant-action {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.participant-card:hover .participant-action {
    color: var(--white);
}

.help-text {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.help-text p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
}

.error-section {
    padding: 4rem 0;
    background: var(--gray-50);
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
}

.error-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.error-card h2 {
    color: var(--error-dark);
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
}

.error-card p {
    color: var(--gray-700);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive Design for Participant Pages */
@media (max-width: 640px) {
    .welcome-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .welcome-header h2 {
        font-size: 2rem;
    }
    
    .exchange-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .participant-grid {
        grid-template-columns: 1fr;
    }
    
    .error-card {
        margin: 1rem;
        padding: 2rem;
    }
}

/* Letter Writing Styles */
.letter-writing {
    padding: 2rem 0;
    background: var(--gray-50);
    min-height: calc(100vh - 180px);
}

.letter-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.letter-header {
    text-align: center;
    margin-bottom: 2rem;
}

.letter-header h1 {
    color: var(--gray-900);
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
}

.letter-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.exchange-context {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.success-message, .error-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.success-message {
    background: var(--success-light);
    color: var(--success-dark);
    border-left: 4px solid var(--success-dark);
}

.error-message {
    background: var(--error-light);
    color: var(--error-dark);
    border-left: 4px solid var(--error-dark);
}

.letter-form {
    margin-bottom: 2.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.letter-prompts {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.letter-prompts p {
    margin: 0 0 1rem 0;
    color: var(--primary-dark);
    font-weight: 600;
}

.letter-prompts ul {
    margin: 0;
    padding-left: 1.5rem;
}

.letter-prompts li {
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.letter-prompts strong {
    color: var(--primary-dark);
}

.form-section textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 400px;
    transition: border-color 0.2s ease;
}

.form-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.character-count {
    text-align: right;
    margin-top: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.letter-tips {
    border-top: 2px solid var(--gray-100);
    padding-top: 2rem;
}

.letter-tips h3 {
    color: var(--gray-900);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.tip h4 {
    color: var(--primary-dark);
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.tip p {
    color: var(--gray-700);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Participant Dashboard Styles */
.participant-dashboard {
    padding: 2rem 0;
    background: var(--gray-50);
    min-height: calc(100vh - 180px);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    color: var(--gray-900);
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
}

.dashboard-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.action-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    border-left: 4px solid var(--gray-300);
    transition: transform 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
}

.action-card.completed {
    border-left-color: var(--success-dark);
    background: linear-gradient(135deg, var(--white) 0%, #f8fff9 100%);
}

.action-card.pending {
    border-left-color: var(--warning-dark);
    background: linear-gradient(135deg, var(--white) 0%, #fffef8 100%);
}

.action-card.ready {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, var(--white) 0%, #f8fbff 100%);
}

.action-card.waiting {
    border-left-color: var(--gray-400);
    background: linear-gradient(135deg, var(--white) 0%, #f9f9f9 100%);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-content h3 {
    color: var(--gray-900);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.card-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.exchange-info-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.exchange-info-card h3 {
    color: var(--gray-900);
    margin: 0 0 1.5rem 0;
    text-align: center;
    font-size: 1.3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.info-item .label {
    color: var(--gray-600);
    font-weight: 500;
}

.info-item .value {
    color: var(--gray-900);
    font-weight: 600;
}

.next-steps {
    padding: 1.5rem;
    background: var(--primary-light);
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.next-steps h4 {
    color: var(--primary-dark);
    margin: 0 0 1rem 0;
}

.next-steps ul {
    margin: 0;
    padding-left: 1.5rem;
}

.next-steps li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Responsive Design for Letter Writing */
@media (max-width: 768px) {
    .letter-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .exchange-context {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Assignment Reveal Styles */
.assignment-reveal {
    padding: 2rem 0;
    background: var(--gray-50);
    min-height: calc(100vh - 180px);
}

.assignment-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.reveal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reveal-header h1 {
    color: var(--gray-900);
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
}

.reveal-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.assignment-reveal-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e8f4ff 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.assignment-reveal-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.assignee-name .gift-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.assignee-name h2 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

.name-reveal {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.group-info {
    color: var(--gray-600);
    font-style: italic;
    background: rgba(255,255,255,0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.exchange-reminders {
    margin-bottom: 2.5rem;
}

.reminder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.reminder-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.reminder-content h4 {
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.reminder-content p {
    color: var(--gray-600);
    margin: 0;
    font-weight: 500;
}

.letter-section, .no-letter-section {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.letter-section h3, .no-letter-section h3 {
    color: var(--gray-900);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.letter-intro {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.letter-content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: Georgia, serif;
    line-height: 1.6;
    color: var(--gray-800);
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.letter-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.gift-tips {
    border-top: 2px solid var(--gray-100);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.gift-tips h3 {
    color: var(--gray-900);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.gift-tips .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
}

.tip-card h4 {
    color: var(--primary-dark);
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.tip-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.tip-card li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* Responsive Design for Assignment Page */
@media (max-width: 768px) {
    .assignment-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .assignment-reveal-box {
        padding: 2rem 1rem;
    }
    
    .name-reveal {
        font-size: 2rem;
    }
    
    .reminder-grid {
        grid-template-columns: 1fr;
    }
    
    .gift-tips .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        text-align: center;
    }
}