/* ===== ROAST-ME SPECIFIC STYLES ===== */
/* ===== ROAST-ME SPECIFIC STYLES ===== */


/* ===== BREADCRUMB ENHANCEMENT - ROAST ME THEME ===== */
.breadcrumb {
    margin: 0 auto 2rem;
    padding: 1rem 0;
    max-width: 900px;
}

.breadcrumb ol {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    font-size: 0.95rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    color: var(--border-color);
    font-size: 1.2rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.15);
}

.breadcrumb span[aria-current="page"] {
    color: #ff6b6b;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 83, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    position: relative;
    overflow: hidden;
}

.breadcrumb span[aria-current="page"]::before {
    content: '🔥';
    margin-right: 0.5rem;
    font-size: 0.9em;
}

/* Remove old breadcrumb styles - these will be replaced */
.breadcrumb,
nav.breadcrumb,
div.breadcrumb,
[class*="breadcrumb"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin: 0 auto 2rem !important;
    padding: 1rem 0 !important;
    font-size: 0.95rem !important;
    list-style: none !important;
    white-space: nowrap !important;
    max-width: 900px !important;
}

/* Remove any list styling */
.breadcrumb ol,
.breadcrumb ul,
nav.breadcrumb ol,
nav.breadcrumb ul,
div.breadcrumb ol,
div.breadcrumb ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Breadcrumb items */
.breadcrumb-item,
.breadcrumb li,
.breadcrumb > *,
.breadcrumb ol > li,
.breadcrumb ul > li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

/* Remove any numbering or bullets */
.breadcrumb-item::before,
.breadcrumb li::before,
.breadcrumb > *::before {
    content: '' !important;
    display: none !important;
}

/* Add separator between items - Enhanced */
.breadcrumb-item:not(:last-child)::after,
.breadcrumb li:not(:last-child)::after,
.breadcrumb > *:not(:last-child)::after {
    content: '›' !important;
    margin: 0 0.25rem !important;
    color: var(--border-color) !important;
    font-size: 1.2rem !important;
    font-weight: 300 !important;
}

/* Link styles - Enhanced */
.breadcrumb a {
    color: var(--text-light) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
}

.breadcrumb a:hover {
    color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.15) !important;
}

/* Active item - Enhanced */
.breadcrumb .active {
    color: #ff6b6b !important;
    font-weight: 700 !important;
    padding: 0.5rem 1.5rem !important;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 83, 0.1)) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 107, 107, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

.breadcrumb .active::before {
    content: '🔥' !important;
    margin-right: 0.5rem !important;
    font-size: 0.9em !important;
}

/* ===== RESPONSIVE BREADCRUMB ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .breadcrumb {
        margin: 0 auto 1.5rem !important;
        padding: 0.75rem !important;
        background: var(--bg-secondary) !important;
        border-radius: var(--radius-sm) !important;
        border: 1px solid var(--border-color) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    .breadcrumb ol {
        justify-content: flex-start !important;
        padding-bottom: 0.5rem !important;
        gap: 0.75rem !important;
        min-width: min-content !important;
    }
    
    .breadcrumb ol::-webkit-scrollbar {
        height: 4px !important;
    }
    
    .breadcrumb ol::-webkit-scrollbar-track {
        background: var(--bg-color) !important;
        border-radius: 2px !important;
    }
    
    .breadcrumb ol::-webkit-scrollbar-thumb {
        background: var(--border-color) !important;
        border-radius: 2px !important;
    }
    
    .breadcrumb li {
        flex-shrink: 0 !important;
    }
    
    .breadcrumb a,
    .breadcrumb span[aria-current="page"],
    .breadcrumb .active {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem !important;
    }
    
    .breadcrumb li:not(:last-child)::after,
    .breadcrumb-item:not(:last-child)::after,
    .breadcrumb li:not(:last-child)::after {
        margin: 0 0.2rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        margin: 0 auto 1rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .breadcrumb ol {
        gap: 0.5rem !important;
        font-size: 0.85rem !important;
    }
    
    .breadcrumb a,
    .breadcrumb span[aria-current="page"],
    .breadcrumb .active {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.85rem !important;
    }
    
    .breadcrumb li:not(:last-child)::after,
    .breadcrumb-item:not(:last-child)::after,
    .breadcrumb li:not(:last-child)::after {
        margin: 0 0.15rem !important;
        font-size: 0.9rem !important;
    }
    
    .breadcrumb .active::before,
    .breadcrumb span[aria-current="page"]::before {
        margin-right: 0.35rem !important;
        font-size: 0.8em !important;
    }
}

@media (max-width: 360px) {
    .breadcrumb ol {
        font-size: 0.8rem !important;
        gap: 0.4rem !important;
    }
    
    .breadcrumb a,
    .breadcrumb span[aria-current="page"],
    .breadcrumb .active {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    
    .breadcrumb li:not(:last-child)::after,
    .breadcrumb-item:not(:last-child)::after,
    .breadcrumb li:not(:last-child)::after {
        margin: 0 0.1rem !important;
        font-size: 0.85rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .breadcrumb a:hover,
    .breadcrumb .active:hover,
    .breadcrumb span[aria-current="page"]:hover {
        transform: none !important;
    }
    
    .breadcrumb a:active,
    .breadcrumb .active:active,
    .breadcrumb span[aria-current="page"]:active {
        transform: scale(0.98) !important;
    }
}


/* ===== TOOL PAGE ENHANCEMENT ===== */
.tool-page {
    padding: 1.5rem 0 5rem;
    animation: fadeIn 0.6s ease-out;
}

.tool-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.75rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.tool-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    border-radius: 2px;
}

.tool-subtitle {
    text-align: center;
    color: var(--text-light);
    margin: 2rem auto 3rem;
    max-width: 800px;
    font-size: 1.125rem;
    line-height: 1.6;
    padding: 0 1rem;
}

/* ===== TOOL FORM CONTAINER ===== */
.tool-form-container {
    max-width: 900px;
    margin: 0 auto;
    animation: slideUp 0.8s ease-out 0.2s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    position: relative;
    overflow: visible;
}

.tool-form::before {
    content: '🔥';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    opacity: 0.1;
    z-index: 0;
}

.tool-form::after {
    content: '📀';
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 2.5rem;
    opacity: 0.1;
    z-index: 0;
}

/* ===== FORM STEPS ===== */
.form-step {
    margin-bottom: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.form-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-step h3 {
    margin-bottom: 1.75rem;
    color: var(--text-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.form-step h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-radius: 50%;
    display: inline-block;
}

/* ===== OPTIONS GRID ===== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-color);
    display: block;
    position: relative;
    overflow: visible;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.option-card:hover {
    border-color: #ff6b6b;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.option-card:hover::before {
    transform: scaleX(1);
}

.option-card input {
    display: none;
}

.option-card input:checked + .option-content {
    color: #ff6b6b;
}

.option-card input:checked + .option-content::before {
    content: '🔥';
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: bounce 0.5s ease;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.option-content {
    position: relative;
    display: block;
    transition: color 0.3s ease;
}

.option-title {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.option-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    font-style: italic;
}

/* ===== ROAST MODES ===== */
.roast-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.roast-mode-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: block;
    position: relative;
    overflow: visible;
    background: var(--bg-color);
    min-height: 260px;
    margin-top: 2rem;
}

.roast-mode-card.selected {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.roast-mode-card.selected::before {
    content: '🔥 SELECTED';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
    z-index: 20;
    white-space: nowrap;
}

.roast-mode-card input[type="radio"] {
    display: none;
}

.roast-mode-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0.5rem;
}

.roast-mode-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.roast-mode-card.selected .roast-mode-icon {
    transform: scale(1.15) rotate(5deg);
}

.roast-mode-title {
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    min-height: 2.5rem;
    text-align: center;
}

.roast-mode-card.selected .roast-mode-title {
    color: #ff6b6b;
    text-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

.roast-mode-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* ===== MORE FUN TOOLS CARDS ===== */
.more-tools-section {
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 2px dashed var(--border-color);
}

.more-tools-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 2.25rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.tool-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

.tool-card-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== RELATED TOOLS - FIX FOR CURRENT HTML STRUCTURE ===== */
.related-tools {
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 2px dashed var(--border-color);
}

.related-tools h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 2.25rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tools-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card-mini {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-card-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #ff6b6b;
}

.tool-card-mini:hover::before {
    transform: scaleX(1);
}

.tool-icon-mini {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.tool-card-mini:hover .tool-icon-mini {
    transform: scale(1.1);
}

.tool-name-mini {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-color);
}

.tool-desc-mini {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
    font-style: italic;
}

/* Add a badge for new/popular tools */
.tool-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-color);
}

.form-actions .btn {
    min-width: 300px;
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.form-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.form-actions .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.form-actions .btn:hover::before {
    left: 100%;
}

.form-actions .btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* ===== RESULTS SECTION ===== */
.results-container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 83, 0.1));
    border-radius: var(--radius);
    border: 1px solid rgba(255, 107, 107, 0.2);
    position: relative;
    overflow: hidden;
}

.results-header::before {
    content: '🔥';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.results-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.results-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.results-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    position: relative;
}

.results-card::before {
    content: '📀 ROAST COMPLETE 📀';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.result-item {
    margin-bottom: 2rem;
    padding: 1.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 4px solid #ff6b6b;
    transition: var(--transition);
}

.result-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.result-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-item h3::before {
    content: '🎯';
    font-size: 1.25rem;
}

.result-item p {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-color);
    line-height: 1.6;
    font-style: italic;
}

/* ===== ROAST RESULT CARD ===== */
.roast-result {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(255, 142, 83, 0.08));
    border-radius: var(--radius);
    border: 2px solid rgba(255, 107, 107, 0.2);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.roast-result::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 8rem;
    color: rgba(255, 107, 107, 0.1);
    font-family: serif;
    line-height: 1;
}

.roast-result::after {
    content: '"';
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 8rem;
    color: rgba(255, 107, 107, 0.1);
    font-family: serif;
    line-height: 1;
    transform: rotate(180deg);
}

.roast-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: firePulse 2s infinite;
}

@keyframes firePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: brightness(1.2); }
}

.roast-result h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
}

.roast-text {
    font-size: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    line-height: 1.6;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    padding: 0 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.roast-intensity {
    margin-top: 2.5rem;
}

.intensity-badge {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.intensity-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.intensity-gentle {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    color: #1e40af;
    border-color: #93c5fd;
}

.intensity-savage {
    background: linear-gradient(135deg, #fee2e2, #fca5a5);
    color: #991b1b;
    border-color: #fca5a5;
}

.intensity-emotional {
    background: linear-gradient(135deg, #fce7f3, #f9a8d4);
    color: #9d174d;
    border-color: #f9a8d4;
}

/* ===== RESULT ACTIONS ===== */
.result-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.result-actions .btn {
    min-width: 200px;
    padding: 1.25rem 2rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.result-actions .btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border: none;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.result-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.4);
}

.result-actions .btn-secondary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.result-actions .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.4);
}

.result-actions .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.result-actions .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* ===== LOADING SKELETON ===== */
.loading-skeleton {
    display: none;
    animation: fadeIn 0.3s ease;
}

.skeleton-header {
    height: 50px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    animation: shimmer 1.5s infinite;
}

.skeleton-item {
    height: 80px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    animation: shimmer 1.5s infinite;
}

.skeleton-roast {
    height: 180px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    border-radius: var(--radius);
    margin: 3rem 0;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== AD SECTION STYLES ===== */
.ad-section {
    margin: 2.5rem auto;
    display: flex;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    padding: 1.5rem;
}

.ad-728 {
    min-height: 90px;
}

.ad-300 {
    min-height: 250px;
}

/* ===== FAQ STYLES ===== */
.faq-section {
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 2px dashed var(--border-color);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 2.25rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #ff6b6b;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-item h3::before {
    content: '🔥';
    font-size: 1.5rem;
}

.faq-item p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* ===== WARNING MESSAGE ===== */
.warning-message {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: var(--radius);
    border-left: 6px solid var(--secondary-color);
    margin: 2.5rem auto;
    max-width: 800px;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.warning-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    background: var(--secondary-color);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-content h4 {
    margin-top: 0;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.warning-content p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .tool-title {
        font-size: 2.5rem;
    }
    
    .results-header h2 {
        font-size: 2.25rem;
    }
    
    .ad-728 {
        display: none;
    }
    
    .breadcrumb {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .breadcrumb::-webkit-scrollbar {
        height: 4px;
    }
    
    .breadcrumb::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 2px;
    }
    
    .breadcrumb::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tool-page {
        padding: 1rem 0 3rem;
    }
    
    .tool-title {
        font-size: 2rem;
    }
    
    .tool-subtitle {
        font-size: 1rem;
        margin: 1.5rem auto 2.5rem;
    }
    
    .tool-form {
        padding: 2rem 1.5rem;
    }
    
    .options-grid,
    .roast-modes {
        grid-template-columns: 1fr;
    }
    
    .form-step {
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
    }
    
    .roast-mode-card {
        min-height: 240px;
        margin-top: 2.5rem;
    }
    
    .roast-mode-card.selected::before {
        top: -25px;
        font-size: 0.7rem;
        padding: 0.5rem 1.2rem;
    }
    
    .form-actions .btn {
        width: 100%;
        min-width: auto;
        padding: 1.25rem;
    }
    
    .results-header {
        padding: 2rem 1.5rem;
    }
    
    .results-header h2 {
        font-size: 2rem;
    }
    
    .results-card {
        padding: 2rem 1.5rem;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .result-actions .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
    
    .roast-result {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .roast-text {
        font-size: 1.25rem;
    }
    
    .warning-message {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .warning-icon {
        margin-bottom: 1rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-section h2 {
        font-size: 1.75rem;
    }
    
    /* Mobile breadcrumb */
    .breadcrumb {
        font-size: 0.9rem;
        gap: 0.3rem;
        margin-bottom: 1.5rem;
        padding: 0.75rem;
        background: var(--bg-secondary);
        border-radius: var(--radius-sm);
    }
    
    .breadcrumb-item,
    .breadcrumb li,
    .breadcrumb > * {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .breadcrumb-item:not(:last-child)::after,
    .breadcrumb li:not(:last-child)::after,
    .breadcrumb > *:not(:last-child)::after {
        margin: 0 0.3rem;
    }
    
    /* More tools mobile */
    .more-tools-section {
        margin-top: 3rem;
        padding-top: 3rem;
    }
    
    .more-tools-section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-card-icon {
        font-size: 2rem;
    }
    
    .tool-card h3 {
        font-size: 1.25rem;
    }
    
    /* Mobile ad */
    .ad-section {
        margin: 2rem auto;
        padding: 1rem;
    }
    
    .ad-300 {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .tool-title {
        font-size: 1.75rem;
    }
    
    .tool-form {
        padding: 1.5rem 1rem;
    }
    
    .form-step h3 {
        font-size: 1.25rem;
    }
    
    .roast-mode-card {
        min-height: 220px;
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .roast-mode-card.selected::before {
        top: -22px;
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }
    
    .roast-mode-title {
        font-size: 1.125rem;
        min-height: 2rem;
    }
    
    .results-card {
        padding: 1.5rem 1rem;
    }
    
    .roast-result {
        padding: 1.5rem 1rem;
    }
    
    .roast-text {
        font-size: 1.125rem;
    }
    
    .intensity-badge {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .result-item {
        padding: 1.25rem;
    }
    
    .result-item p {
        font-size: 1rem;
    }
    
    .ad-300 {
        margin: 1.5rem auto;
        padding: 1rem;
    }
    
    .faq-section {
        margin-top: 3rem;
        padding-top: 3rem;
    }
    
    .faq-item {
        padding: 1.25rem;
    }
    
    /* Small mobile breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
        gap: 0.2rem;
        margin-bottom: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .breadcrumb-item:not(:last-child)::after,
    .breadcrumb li:not(:last-child)::after,
    .breadcrumb > *:not(:last-child)::after {
        margin: 0 0.2rem;
        content: 'â€º' !important;
    }
    
    /* More tools small mobile */
    .more-tools-section h2 {
        font-size: 1.5rem;
    }
    
    .tool-card {
        padding: 1.25rem;
    }
    
    .tool-card-icon {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .tool-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .tool-card p {
        font-size: 0.9rem;
    }
    
    .tool-card-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .tool-title {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        gap: 0.15rem;
    }
    
    .breadcrumb-item:not(:last-child)::after,
    .breadcrumb li:not(:last-child)::after,
    .breadcrumb > *:not(:last-child)::after {
        margin: 0 0.15rem;
    }
    
    .tool-card {
        padding: 1rem;
    }
    
    .tool-card-icon {
        font-size: 1.5rem;
    }
    
    .tool-card h3 {
        font-size: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .option-card:hover,
    .roast-mode-card:hover,
    .result-item:hover,
    .intensity-badge:hover,
    .btn:hover,
    .tool-card:hover {
        transform: none !important;
    }
    
    .option-card:active,
    .roast-mode-card:active,
    .tool-card:active {
        transform: scale(0.98) !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .tool-form,
    .theme-toggle,
    .back-to-top,
    .ad-section,
    .footer,
    .warning-message,
    .result-actions .btn:nth-child(2),
    .breadcrumb,
    .more-tools-section {
        display: none !important;
    }
    
    .results-card {
        border: 2px solid #000;
        box-shadow: none !important;
        margin: 0;
        padding: 1rem;
        break-inside: avoid;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .roast-result {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

@media (max-width: 768px) {
    /* ... existing mobile styles ... */
    
    /* Fix for roast complete text on mobile */
    .roast-mode-card.selected::before {
        top: -25px !important;
        font-size: 0.7rem !important;
        padding: 0.5rem 1rem !important;
        max-width: 85vw !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center !important;
        z-index: 1000 !important;
    }
    
    /* Ensure roast mode cards have enough spacing */
    .roast-mode-card {
        min-height: 240px;
        margin-top: 2.5rem !important;
        padding-top: 2rem !important;
    }
    
    /* Adjust the results card to prevent overlap */
    .results-card {
        padding-top: 3rem !important;
        position: relative;
    }
    
    .results-card::before {
        top: -12px !important;
        font-size: 0.75rem !important;
        padding: 0.5rem 1.2rem !important;
        white-space: normal !important;
        max-width: 90% !important;
        line-height: 1.3 !important;
        z-index: 100 !important;
    }
    
    /* More space for result items on mobile */
    .result-item {
        margin-bottom: 1.5rem;
        padding: 1.25rem;
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    /* Additional fixes for very small screens */
    .roast-mode-card.selected::before {
        top: -22px !important;
        font-size: 0.65rem !important;
        padding: 0.4rem 0.8rem !important;
        max-width: 80% !important;
    }
    
    .results-card::before {
        top: -10px !important;
        font-size: 0.65rem !important;
        padding: 0.4rem 1rem !important;
        max-width: 85% !important;
    }
    
    /* Ensure there's no overlap with the roast complete badge */
    .roast-result {
        margin-top: 2rem !important;
        position: relative;
        z-index: 1;
    }
}

/* Add a media query for very small heights */
@media (max-height: 700px) and (max-width: 768px) {
    .roast-mode-card.selected::before {
        position: relative !important;
        top: 0 !important;
        margin-top: 0.5rem !important;
        margin-bottom: 1rem !important;
        transform: translateX(-50%) !important;
        display: inline-block !important;
    }
    
    .roast-mode-card {
        margin-top: 1rem !important;
    }
}