/*
Theme Name: AtrAroma
Theme URI: https://atraroma.dev
Author: AtrAroma Team
Author URI: https://atraroma.dev
Description: A starter theme based on Underscores for AtrAroma projects.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atraroma
*/

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

:root {
    --color-primary: #2c3e50;
    --color-accent: #e74c3c;
    --color-bg: #ffffff;
    --color-text: #333333;
    --color-light-bg: #f8f9fa;
    --font-body: 'Tahoma', 'Arial', sans-serif;
    --font-heading: 'Tahoma', 'Arial', sans-serif;
    --max-width: 1200px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
}

.site-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background-color: var(--color-primary);
    color: #fff;
    padding: 20px 0;
}

.site-header .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 4px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.main-navigation a:hover {
    opacity: 0.8;
}

.site-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

.entry-header {
    margin-bottom: 16px;
}

.entry-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.entry-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--color-accent);
}

.entry-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
}

.entry-content {
    margin-bottom: 24px;
}

.entry-content p {
    margin-bottom: 16px;
}

.read-more {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.widget-area {
    padding: 0;
}

.widget {
    background: var(--color-light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--color-text);
    text-decoration: none;
}

.widget a:hover {
    color: var(--color-accent);
}

.site-footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

.comment-list {
    list-style: none;
}

.comment-body {
    padding: 16px;
    background: var(--color-light-bg);
    border-radius: 8px;
    margin-bottom: 12px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 12px;
}

.comment-respond textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-respond input[type="submit"] {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-respond input[type="submit"]:hover {
    background: #c0392b;
}

@media (max-width: 768px) {
    .site-main {
        grid-template-columns: 1fr;
    }

    .site-header .site-container {
        flex-direction: column;
        gap: 12px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   Perfume Profile (شناسنامه عطر)
   ========================================================================== */

.atraroma-perfume-profile {
    margin: 40px 0;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* Header */
.perfume-profile__header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #34495e 100%);
    padding: 20px 28px;
}

.perfume-profile__title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.perfume-profile__icon {
    font-size: 1.4rem;
}

/* Body */
.perfume-profile__body {
    padding: 28px;
}

.perfume-profile__section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

/* Olfactory Pyramid */
.perfume-pyramid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.perfume-pyramid__level {
    position: relative;
    padding: 16px 20px;
    border-radius: 10px;
    background: var(--color-light-bg);
}

.perfume-pyramid__level--top {
    border-right: 4px solid #f39c12;
}

.perfume-pyramid__level--heart {
    border-right: 4px solid #e74c3c;
}

.perfume-pyramid__level--base {
    border-right: 4px solid #2c3e50;
}

.perfume-pyramid__level--other {
    border-right: 4px solid #95a5a6;
}

.perfume-pyramid__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #777;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.perfume-pyramid__notes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Individual Note */
.perfume-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.2s ease;
    font-size: 0.92rem;
}

.perfume-note:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
    transform: translateY(-1px);
}

.perfume-note__image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.perfume-note__name {
    font-weight: 500;
}

/* Meta Grid */
.perfume-profile__meta {
    margin-top: 32px;
}

.perfume-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.perfume-meta-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-light-bg);
    border-radius: 10px;
    transition: box-shadow 0.2s ease;
}

.perfume-meta-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.perfume-meta-item__image-wrap {
    flex-shrink: 0;
}

.perfume-meta-item__image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.perfume-meta-item__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.perfume-meta-item__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.perfume-meta-item__label .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.perfume-meta-item__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.perfume-meta-item__value:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .perfume-profile__body {
        padding: 20px;
    }

    .perfume-meta-grid {
        grid-template-columns: 1fr;
    }

    .perfume-pyramid__notes {
        gap: 8px;
    }

    .perfume-note {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .perfume-note__image {
        width: 28px;
        height: 28px;
    }
}
