/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e2e8f0;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
.header {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.title i {
    color: #60a5fa;
}

.author-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.author-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    padding: 10px 16px;
    border: 2px solid #475569;
    border-radius: 8px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: #60a5fa;
    background: #1e293b;
    transform: translateY(-1px);
}

.filter-btn.active {
    border-color: #60a5fa;
    background: #3b82f6;
    color: white;
}

.filter-btn i {
    font-size: 0.8rem;
}


.search-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-group input {
    padding: 10px 40px 10px 12px;
    border: 2px solid #475569;
    border-radius: 8px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.2s ease;
}

.search-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.search-group input::placeholder {
    color: #94a3b8;
}

.search-group i {
    position: absolute;
    right: 12px;
    color: #94a3b8;
}


/* Notice section */
.notice-section {
    margin-bottom: 30px;
}

.notice-card {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.3);
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid #60a5fa;
}

.notice-card i {
    font-size: 1.5rem;
    color: #60a5fa;
    flex-shrink: 0;
}

.notice-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.notice-content p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.notice-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.notice-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Projects container */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.status-section {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.status-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
}

.active-title {
    color: #10b981;
    border-bottom-color: #064e3b;
}

.active-title i {
    color: #34d399;
}

.completed-title {
    color: #9ca3af;
    border-bottom-color: #374151;
}

.completed-title i {
    color: #6b7280;
}

.project-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: auto;
    color: #cbd5e1;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.project-card {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-name-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.project-name-link:hover {
    color: #60a5fa;
    transform: translateY(-1px);
}

.project-name-link:hover .project-name {
    color: #60a5fa;
}

.project-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(96, 165, 250, 0.3);
}

.calendar-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(96, 165, 250, 0.4);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.calendar-btn-small.disabled {
    background: #374151;
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
}

.calendar-btn-small.disabled:hover {
    transform: none;
    box-shadow: none;
    background: #374151;
}

.sprout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: help;
    transition: all 0.2s ease;
    margin-right: 8px;
    position: relative;
}

.sprout-icon::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sprout-icon::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 3px;
}

.sprout-icon:hover::after,
.sprout-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

.sprout-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.project-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.project-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 110px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
    box-sizing: border-box;
}

.status-upcoming {
    background: #451a03;
    color: #fbbf24;
}

.status-active {
    background: #064e3b;
    color: #34d399;
}

.status-claiming {
    background: #7c2d12;
    color: #fbbf24;
}

.status-register {
    background: #1e3a8a;
    color: #60a5fa;
}

.status-snapshot-taken {
    background: #7c2d12;
    color: #fde68a;
}

.status-completed {
    background: #374151;
    color: #9ca3af;
}

.project-info {
    display: grid;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #374151;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value {
    color: #f1f5f9;
    font-weight: 600;
}


.region-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.region-korea {
    background: #7f1d1d;
    color: #fca5a5;
}

.region-china {
    background: #1e3a8a;
    color: #93c5fd;
}

.boost-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.new-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.monthly-reward-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chain-info {
    color: #60a5fa;
    font-size: 0.9rem;
    font-weight: 500;
}

.ca-info {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    cursor: help;
}

.copy-ca-btn {
    background: #374151;
    border: 1px solid #4b5563;
    color: #d1d5db;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.copy-ca-btn:hover {
    background: #4b5563;
    border-color: #6b7280;
    color: #f3f4f6;
}

.copy-ca-btn:active {
    background: #1f2937;
    transform: scale(0.95);
}

.announcement-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.announcement-link:hover {
    color: #3b82f6;
}

.description-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.description-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #94a3b8;
    font-weight: 400;
    font-style: italic;
}

.no-projects {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Loading and no results */
.loading, .no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.loading i {
    font-size: 2rem;
    color: #60a5fa;
    margin-bottom: 16px;
}

.loading span {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.no-results i {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.no-results h3 {
    color: #f1f5f9;
    margin-bottom: 8px;
}

.no-results p {
    color: #94a3b8;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-group input {
        width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .project-card {
        padding: 20px;
    }
}
