﻿
/*     body {
            background: linear-gradient(135deg, #1a237e, #0d47a1);
            font-family: 'Tahoma', 'Segoe UI', sans-serif;
            min-height: 100vh;
            padding-top: 20px;
            padding-bottom: 40px;
        }*/
.page-header {
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* کاشی‌ها */
.tile {
    display: block;
    height: 170px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-decoration: none !important;
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
            transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(0);
    background-position: center;
}

    .tile:hover {
        transform: translateY(-12px) scale(1.03);
        box-shadow: 0 18px 35px rgba(0,0,0,0.45);
    }

.tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  /*  height: auto;
    display: block;*/
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.tile:hover .tile-bg {
    transform: scale(1.12);
}

.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.75));
}

.tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 15px;
    z-index: 2;
}

    .tile-content h3 {
        margin: 0 0 6px 0;
        font-size: 20px;
        font-weight: bold;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    }

    .tile-content p {
        margin: 0;
        font-size: 13px;
        opacity: 0.9;
    }

.tile-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 28px;
    opacity: 0.85;
    z-index: 2;
    transition: transform 0.3s;
}

.tile:hover .tile-icon {
    transform: scale(1.2) rotate(8deg);
}

/* رنگ‌های مختلف کاشی‌ها */
.tile-blue {
    background-color: #1565c0;
}

.tile-green {
    background-color: #2e7d32;
}

.tile-orange {
    background-color: #ef6c00;
}

.tile-purple {
    background-color: #6a1b9a;
}

.tile-red {
    background-color: #c62828;
}

.tile-teal {
    background-color: #00695c;
}

.tile-indigo {
    background-color: #283593;
}

.tile-brown {
    background-color: #5d4037;
}

.tile-pink {
    background-color: #ad1457;
}

.tile-cyan {
    background-color: #00838f;
}

.tile-lime {
    background-color: #827717;
}

.tile-deep {
    background-color: #4527a0;
}

/* انیمیشن ورود کاشی‌ها */
.tile {
    opacity: 0;
    animation: tileIn 0.6s ease forwards;
}

    .tile:nth-child(1) {
        animation-delay: 0.05s;
    }

    .tile:nth-child(2) {
        animation-delay: 0.10s;
    }

    .tile:nth-child(3) {
        animation-delay: 0.15s;
    }

    .tile:nth-child(4) {
        animation-delay: 0.20s;
    }

    .tile:nth-child(5) {
        animation-delay: 0.25s;
    }

    .tile:nth-child(6) {
        animation-delay: 0.30s;
    }

    .tile:nth-child(7) {
        animation-delay: 0.35s;
    }

    .tile:nth-child(8) {
        animation-delay: 0.40s;
    }

    .tile:nth-child(9) {
        animation-delay: 0.45s;
    }

    .tile:nth-child(10) {
        animation-delay: 0.50s;
    }

    .tile:nth-child(11) {
        animation-delay: 0.55s;
    }

    .tile:nth-child(12) {
        animation-delay: 0.60s;
    }

@keyframes tileIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer {
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-top: 40px;
    font-size: 13px;
}

