/* Home Page Specific Styles */

.header {
    background: var(--header-gradient);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: -30px;
    padding-bottom: 80px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.header h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header p {
    font-size: 1.3em;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.search-section {
    padding: 30px 20px;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.search-input {
    width: 100%;
    max-width: 600px;
    padding: 20px 25px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    outline: none;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
    font-weight: 500;
}

.filter-btn.active {
    background: #667eea;
    color: white;
}

.filter-btn:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.category {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.category-header {
    padding: 25px;
    text-align: center;
}

.category-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.calc-list {
    padding: 0 25px 25px;
}

.calc-item {
    display: block;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.calc-item:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.stats {
    background: #f8f9fa;
    padding: 40px 20px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    margin-top: 10px;
}

/* Market Dashboard Styles */
.market-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px auto;
    max-width: 1000px;
}

.market-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid #ddd;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.market-card.blue {
    border-top-color: #2196F3;
}

.market-card.btc {
    border-top-color: #F7931A;
}

.market-card.ipc {
    border-top-color: #667eea;
}

.market-title {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.market-price {
    font-size: 2.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.market-change {
    font-size: 0.95em;
    font-weight: 600;
    margin-top: 5px;
}

.market-change.up {
    color: #20c997;
}

.market-change.down {
    color: #fa5252;
}

.market-change.neutral {
    color: #adb5bd;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5em;
    }

    .header {
        padding-bottom: 40px;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .search-section {
        margin-top: -30px;
    }

    .categories {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .market-dashboard {
        grid-template-columns: 1fr;
    }
}