/**
 * استایل ابزار تبدیل تاریخ
 */

/* تاریخ امروز */
.novin-today-section {
    background: linear-gradient(135deg, #7043f2 0%, #5c35c9 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(112, 67, 242, 0.3);
}

.novin-today-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.novin-today-header svg {
    flex-shrink: 0;
}

.novin-today-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.novin-today-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.novin-today-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.novin-spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: novin-spin 0.8s linear infinite;
}

.novin-today-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.novin-today-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.novin-today-card-header svg {
    width: 18px;
    height: 18px;
}

.novin-today-card-date {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.novin-today-card-day {
    font-size: 13px;
    opacity: 0.8;
}

/* تب‌های تبدیل */
.novin-converter-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.novin-converter-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'danaFaNum', sans-serif;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.novin-converter-tab:hover {
    background: #f8f4ff;
    border-color: #7043f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 67, 242, 0.15);
}

.novin-converter-tab.active {
    background: linear-gradient(135deg, #7043f2 0%, #5c35c9 100%);
    border-color: #7043f2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(112, 67, 242, 0.3);
}

.novin-converter-tab svg {
    flex-shrink: 0;
}

/* پنل‌های تبدیل */
.novin-converter-panel {
    display: none;
}

.novin-converter-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.novin-converter-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}

.novin-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.novin-form-header svg {
    color: #7043f2;
    flex-shrink: 0;
}

.novin-form-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.novin-date-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.novin-convert-options {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 16px;
    background: #ffffff;
    border-radius: 10px;
}

.novin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    user-select: none;
}

.novin-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #7043f2;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #7043f2;
}

.novin-convert-btn {
    width: 100%;
}

/* نتایج */
.novin-date-result {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 3px solid #f5f5f5;
    animation: fadeInUp 0.5s ease;
}

.novin-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.novin-result-header svg {
    color: #7043f2;
    flex-shrink: 0;
}

.novin-result-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.novin-result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.novin-result-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.novin-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7043f2 0%, #5c35c9 100%);
}

.novin-result-card:hover {
    border-color: #7043f2;
    box-shadow: 0 8px 24px rgba(112, 67, 242, 0.15);
    transform: translateY(-4px);
}

.novin-result-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f5;
}

.novin-result-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7043f2 0%, #5c35c9 100%);
    border-radius: 10px;
    color: #ffffff;
    flex-shrink: 0;
}

.novin-result-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.novin-result-card-body {
    margin-bottom: 12px;
}

.novin-result-date {
    font-size: 28px;
    font-weight: 800;
    color: #7043f2;
    margin-bottom: 8px;
    line-height: 1.2;
}

.novin-result-month {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.novin-result-day {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f8f4ff;
    color: #7043f2;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.novin-result-day svg {
    width: 14px;
    height: 14px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .novin-today-section {
        padding: 20px;
    }

    .novin-today-content {
        grid-template-columns: 1fr;
    }

    .novin-converter-tabs {
        grid-template-columns: 1fr;
    }

    .novin-converter-form {
        padding: 20px;
    }

    .novin-date-inputs {
        grid-template-columns: 1fr;
    }

    .novin-convert-options {
        flex-direction: column;
        gap: 12px;
    }

    .novin-result-cards {
        grid-template-columns: 1fr;
    }

    .novin-result-date {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .novin-today-header h3 {
        font-size: 18px;
    }

    .novin-today-card-date {
        font-size: 16px;
    }

    .novin-form-header h4 {
        font-size: 16px;
    }

    .novin-result-header h3 {
        font-size: 20px;
    }

    .novin-result-date {
        font-size: 22px;
    }
}
