/* Modern Walking Calories Calculator Design - RTL Support */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

.wcc-wrapper, .wcc-experience-list, .wcc-single-experience {
    max-width: 1000px;
    margin: 40px auto;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2c3e50;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

/* --- Layout & Sidebar Hiding --- */
body.wcc-full-width .sidebar,
body.wcc-full-width #sidebar,
body.wcc-full-width .widget-area,
body.wcc-full-width #secondary,
body.wcc-full-width .elementor-widget-sidebar {
    display: none !important;
}

body.wcc-full-width .content-area,
body.wcc-full-width #primary,
body.wcc-full-width .site-main,
body.wcc-full-width .entry-content {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    max-width: 1200px !important;
}

/* --- Cards & Containers --- */
.wcc-calculator-section, .wcc-experience-section, .wcc-card, .wcc-stats-box, .wcc-tips-box, .wcc-author-info {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* --- Headings --- */
h2, h3, h4 {
    color: #1a252f;
    margin-top: 0;
    font-weight: 700;
}

h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #2c3e50; }

/* --- Forms --- */
.wcc-form-group {
    margin-bottom: 25px;
}

.wcc-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #34495e;
    font-size: 1rem;
}

.wcc-form-group input, .wcc-form-group select, .wcc-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wcc-form-group input:focus, .wcc-form-group select:focus, .wcc-form-group textarea:focus {
    border-color: #3498db;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.wcc-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    background-size: 12px;
    padding-left: 40px;
}

/* --- Buttons --- */
.wcc-btn, .button, input[type="submit"] {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.wcc-btn:hover, .button:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.wcc-btn-secondary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    margin-top: 15px;
}

.wcc-btn-secondary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.wcc-btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    box-shadow: none;
}
.wcc-btn-outline:hover {
    background: #3498db;
    color: #fff;
}

/* --- Action Bar / Top Buttons --- */
.wcc-action-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.wcc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.wcc-btn-add {
    background: #fff;
    color: #2c3e50;
    border: 2px solid #e0e6ed;
}
.wcc-btn-add:hover {
    border-color: #27ae60;
    color: #27ae60;
    background: #f0fff4;
}

.wcc-btn-calc {
    background: #fff;
    color: #2c3e50;
    border: 2px solid #e0e6ed;
}
.wcc-btn-calc:hover {
    border-color: #3498db;
    color: #3498db;
    background: #f0f7ff;
}

/* --- Results Box --- */
#wcc-results {
    margin-top: 30px;
    background: #f0fff4;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #c3e6cb;
    border-right: 6px solid #2ecc71;
}

/* --- Grid & List --- */
.wcc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.wcc-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.wcc-badge {
    background: #f1f2f6;
    color: #576574;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.wcc-loss {
    background: #ffeaa7;
    color: #d35400;
}

.wcc-read-more {
    display: inline-block;
    margin-top: 15px;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}
.wcc-read-more:hover {
    text-decoration: underline;
}

/* --- Filters --- */
.wcc-filters {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 16px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important;
    border: 1px solid #f0f0f0 !important;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.wcc-filters input {
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* --- Dynamic Sections (New/Interactive) --- */
.wcc-dynamic-section {
    margin-top: 50px;
}
.wcc-dynamic-section h3 {
    border-right: 4px solid #3498db;
    padding-right: 15px;
}

.wcc-article-widget {
    margin-top: 20px;
    padding: 22px 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #f5f8ff 40%, #eef6ff 100%);
    box-shadow: 0 14px 35px rgba(31, 97, 141, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.12);
    position: relative;
    overflow: hidden;
}
.wcc-article-widget::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52,152,219,0.15) 0, transparent 60%);
    top: -40px;
    left: -40px;
    pointer-events: none;
}
.wcc-article-widget::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,204,113,0.18) 0, transparent 60%);
    bottom: -30px;
    right: -20px;
    pointer-events: none;
}

.wcc-article-widget * {
    box-sizing: border-box;
}

.wcc-article-widget-header {
    position: relative;
    z-index: 1;
}
.wcc-article-widget-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(52,152,219,0.12);
    color: #1f4e79;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.wcc-article-widget-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecc71;
}
.wcc-article-widget-header h3 {
    font-size: 1.2rem;
    margin: 0 0 4px 0;
    color: #1a252f;
    font-weight: 700;
}
.wcc-article-widget-header p {
    margin: 0 0 4px 0;
    color: #5f6f81;
    font-size: 0.85rem;
}
.wcc-article-widget-section {
    margin-top: 18px;
    position: relative;
    z-index: 1;
}
.wcc-article-widget-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}
.wcc-article-widget-section-title h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #1a252f;
    font-weight: 700;
}
.wcc-article-widget-link {
    font-size: 0.9rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}
.wcc-article-widget-link:hover {
    text-decoration: underline;
}
.wcc-article-widget-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.wcc-article-widget-grid-small {
    grid-template-columns: 1fr;
}
.wcc-article-widget-card {
    background: rgba(255,255,255,0.9);
    border-radius: 14px;
    padding: 12px 12px;
    border: 1px solid rgba(224, 230, 237, 0.8);
    box-shadow: 0 6px 15px rgba(0,0,0,0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wcc-article-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}
.wcc-article-widget-card h5 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}
.wcc-article-widget-card h5 a {
    color: #1f3b57;
    text-decoration: none;
}
.wcc-article-widget-card h5 a:hover {
    color: #3498db;
}
.wcc-article-widget-excerpt {
    font-size: 0.8rem;
    color: #6c7a89;
}
.wcc-article-widget-cta {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}
.wcc-article-widget-btn {
    padding: 9px 18px;
    border-radius: 30px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(46,204,113,0.4);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.wcc-article-widget-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46,204,113,0.5);
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}
.wcc-article-widget-btn-secondary {
    background: #fff;
    color: #27ae60;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(39,174,96,0.3);
}
.wcc-article-widget-btn-secondary:hover {
    background: #27ae60;
    color: #fff;
}

/* --- Single Page --- */
.wcc-author-info {
    background: #f8f9fa;
    border-left: 5px solid #3498db;
}

.wcc-stats-box {
    background: #fff;
    border: 1px solid #e0e6ed;
}
.wcc-stats-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.wcc-stats-box li {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}
.wcc-stats-box li strong {
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.wcc-cta {
    text-align: center;
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    border-radius: 20px;
    color: white;
}
.wcc-cta a {
    color: #fff;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    margin-right: 10px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}
.wcc-cta a:hover {
    background: #fff;
    color: #6c5ce7;
}

/* Responsive */
@media (max-width: 768px) {
    .wcc-wrapper, .wcc-experience-list, .wcc-single-experience {
        padding: 0 15px;
    }
    .wcc-grid {
        grid-template-columns: 1fr;
    }
    .wcc-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .wcc-filters label {
        margin: 0 !important;
        margin-bottom: 10px !important;
    }
}
