/* assets/css/apple.css - Apple-style design (no emoji) */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #1d1d1f;
    line-height: 1.42857;
    -webkit-font-smoothing: antialiased;
}
/* Логотип с иконкой */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 21px;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo:hover {
    color: #0071e3;
}

/* Навигация */
.apple-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e8e8ed;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 21px;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.logo:hover {
    color: #0071e3;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #0071e3;
}

/* Кнопки */
.btn {
    background: #0071e3;
    color: white;
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0077ed;
    transform: scale(1.01);
}

.btn-secondary {
    background: #e8e8ed;
    color: #1d1d1f;
}

.btn-secondary:hover {
    background: #d2d2d7;
}

.btn-outline {
    background: transparent;
    border: 1px solid #0071e3;
    color: #0071e3;
}

.btn-outline:hover {
    background: #0071e3;
    color: white;
}

/* Поиск */
.search-wrapper {
    max-width: 600px;
    margin: 40px auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    font-size: 16px;
    background: #f5f5f7;
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    color: #1d1d1f;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    background: white;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #86868b;
}

/* Фильтры */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    padding: 0 20px;
}

.filter-chip {
    background: #f5f5f7;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    background: #e8e8ed;
}

.filter-chip.active {
    background: #0071e3;
    color: white;
}

/* Сетка карточек */
.grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 24px 60px;
}

/* Карточка монеты */
.coin-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: block;
    border: 1px solid #e8e8ed;
}

.coin-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    border-color: #d2d2d7;
}

.coin-card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #ffffff;
    padding: 20px;
}

.coin-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 8px 16px 4px;
}

.coin-card-subtitle {
    font-size: 14px;
    color: #86868b;
    margin: 0 16px 16px;
}

/* Страница монеты */
.coin-container {
    max-width: 1024px;
    margin: 40px auto;
    padding: 0 24px;
}

.coin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e8e8ed;
    padding: 40px;
}

.coin-images img {
    width: 100%;
    border-radius: 20px;
    background: #fbfbfd;
    margin-bottom: 20px;
}

.coin-info h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.coin-meta {
    color: #86868b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8ed;
}

.specs {
    width: 100%;
    margin: 24px 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8ed;
}

.spec-label {
    color: #86868b;
    font-weight: 400;
}

.spec-value {
    color: #1d1d1f;
    font-weight: 500;
}

/* Таблица тиражей */
.mintage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.mintage-table th,
.mintage-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e8e8ed;
}

.mintage-table th {
    color: #86868b;
    font-weight: 500;
    font-size: 13px;
}

.mintage-table td {
    color: #1d1d1f;
}

/* Кнопка покупки */
.buy-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0071e3;
    color: white;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 24px;
}

/* Футер */
.apple-footer {
    background: #f5f5f7;
    padding: 40px 24px 32px;
    margin-top: 60px;
    color: #86868b;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid #e8e8ed;
}

.apple-footer a {
    color: #0071e3;
    text-decoration: none;
}

/* Адаптив */
@media (max-width: 768px) {
    .coin-layout {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .grid {
        gap: 16px;
        padding: 0 16px 40px;
    }
}