.recipe-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Navigation */
.recipe-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Stały gradient zamiast przezroczystego */
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Dodany cień dla lepszej separacji */
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3); /* Dodane obramowanie */
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Cień tekstu */
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.back-icon {
    font-size: 1.2em;
}

.recipe-nav-title {
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    opacity: 1; /* Zwiększone z 0.9 */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4); /* Mocniejszy cień */
    background: linear-gradient(45deg, #FFD93D, #ff6b6b); /* Gradient jak w tytule */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5)); /* Dodatkowy efekt cienia */
}

.recipe-nav.scrolled {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(15px);
}

/* Main Content */
.recipe-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.recipe-loading,
.recipe-error {
    text-align: center;
    color: white;
    padding: 80px 20px;
}

.error-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.8;
}

.recipe-error h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.recipe-error p {
    opacity: 0.8;
    margin-bottom: 30px;
}

.error-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.error-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Recipe Detail Card - Matching Main Page Style */
.recipe-detail {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Recipe Header - Simplified to match main page */
.recipe-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Taki sam jak strona główna */
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
}

.recipe-detail-header::before {
    content: attr(data-icon);
    font-size: 80px; /* zmniejszone z 100px */
    position: absolute;
    top: 20px;
    right: 30px;
    opacity: 0.2; /* zwiększone z 0.15 - lepiej widoczne */
}

.recipe-detail-title {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* mocniejszy cień */
    background: linear-gradient(45deg, #FFD93D, #ff6b6b); /* złoto-czerwony gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recipe-detail-subtitle {
    font-size: 1.2em;
    opacity: 0.95; /* zwiększone z 0.9 */
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.recipe-detail-description {
    font-size: 1.1em;
    opacity: 0.9;
    margin-top: 20px;
    line-height: 1.5;
    font-weight: 300;
}

/* Meta info cards - lepszy kontrast */
.recipe-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(255, 255, 255, 0.25); /* zwiększone z 0.15 */
    padding: 20px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px); /* zwiększone z 5px */
    text-align: center;
    min-width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* dodane obramowanie */
}

.meta-number {
    font-size: 2.5em;
    font-weight: bold;
    display: block;
    color: #FFD93D; /* jasnożółty - lepiej widoczny */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4); /* mocniejszy cień */
    filter: drop-shadow(0 0 8px rgba(255, 217, 61, 0.5)); /* świecenie */
}

.meta-label {
    font-size: 0.9em;
    opacity: 0.95; /* zwiększone z 0.9 */
    margin-top: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-weight: 500;
}

.recipe-detail-body {
    padding: 30px;
}

.recipe-section {
    margin-bottom: 35px;
}

.recipe-section h3 {
    color: #ff6b6b;
    font-size: 1.6em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Add proper spacing for second h3 in ingredients section */
.ingredients-grid + h3 {
    margin-top: 35px;
}

/* Ingredients Cards - Matching main page card style */
.ingredients-info {
    background: #e8f5ff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ingredients-info h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ingredients-info p {
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

/* Ingredient items as cards */
.ingredient-item {
    background: white;
    padding: 18px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    cursor: default;
}

.ingredient-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.ingredient-item.basic {
    border-top: 4px solid #28a745;
}

.ingredient-item.optional {
    border-top: 4px solid #6c757d;
    opacity: 0.7;
    cursor: pointer;
}

.ingredient-item.optional:hover {
    opacity: 0.9;
}

.ingredient-item.optional.selected {
    opacity: 1;
    border-top-color: #ffc107;
    background: #fffbf0;
}

/* Tooltips matching main design */
.ingredient-item.optional::after {
    content: "Kliknij aby dodać";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.ingredient-item.optional:hover::after {
    opacity: 1;
}

.ingredient-item.optional.selected::after {
    content: "✓ Dodane";
    background: #28a745;
}

.ingredient-icon {
    font-size: 40px;
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.ingredient-text {
    flex: 1;
}

.ingredient-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.ingredient-amount {
    color: #7f8c8d;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Steps Section - Card Style */
.steps-container {
    counter-reset: step-counter;
}

.step-item {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    padding-left: 80px;
    border-radius: 15px;
    counter-increment: step-counter;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.step-item.optional {
    border-top: 4px solid #ffc107;
    background: #fffbf0;
    display: none;
    opacity: 0;
    transform: translateX(-20px);
}

.step-item.optional.visible {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideInStep 0.4s ease;
}

@keyframes slideInStep {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step numbers matching main page style */
.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.step-item.optional::before {
    background: #ffc107;
    color: #333;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.step-text {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.05em;
}

.step-text strong {
    color: #ff6b6b;
    font-weight: 600;
}

/* Tips Section - Card Style */
.tips-container {
    background: #fffbf0;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-top: 4px solid #ffc107;
}

.tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tips-list li {
    color: #5a6c7d;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.tips-list li::before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

/* Sauce Ingredients - Card Style */
.ingredient-item.sauce {
    border-top: 4px solid #007bff;
    cursor: pointer;
    opacity: 0.8;
}

.ingredient-item.sauce:hover {
    opacity: 1;
}

.ingredient-item.sauce.selected {
    background: #f0f8ff;
    border-top-color: #0056b3;
}

.ingredient-item.sauce::after {
    content: "Kliknij aby zobaczyć przepis";
    background: #007bff;
}

.sauce-recipe {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

.sauce-recipe.visible {
    display: block !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.sauce-recipe h5 {
    color: #2c3e50;
    margin: 15px 0 10px 0;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sauce-recipe h5:first-child {
    margin-top: 0;
}

.sauce-recipe ul,
.sauce-recipe ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.sauce-recipe li {
    margin-bottom: 6px;
    line-height: 1.5;
    color: #5a6c7d;
}

.sauce-recipe ol li {
    margin-bottom: 10px;
}

/* Steps for sauce */
.step-item.sauce {
    border-top: 4px solid #007bff;
}

.step-item.sauce::before {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Coming Soon Content */
.coming-soon-content {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.coming-soon-icon {
    font-size: 5em;
    margin-bottom: 30px;
    opacity: 0.7;
    color: #ff6b6b;
}

.coming-soon-content h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.coming-soon-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.8;
    line-height: 1.6;
    color: #5a6c7d;
}

.back-to-menu-btn {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.back-to-menu-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.recipe-detail-header.coming-soon {
    background: linear-gradient(135deg, #6c757d, #495057);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 15px;
    }
    
    .recipe-nav-title {
        font-size: 1em;
        /* Na mobile ukrywamy tytuł jeśli za długi */
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .back-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    
    .recipe-main {
        padding: 20px 15px;
    }
    
    .recipe-detail-header {
        padding: 35px 20px; /* zmniejszone z 40px 25px */
    }

     .recipe-detail-header::before {
        font-size: 60px; /* zmniejszone z 80px */
        top: 15px;
        right: 20px;
    }
    
     .recipe-detail-title {
        font-size: 2.2em;
    }
    
    .recipe-detail-meta {
        gap: 15px;
    }
    
   .meta-item {
        padding: 16px 20px; /* zmniejszone z 15px 20px */
        min-width: 120px;
    }
    
    .meta-number {
        font-size: 2.2em; /* zwiększone z 2em - lepiej widoczne */
    }
    
    .recipe-detail-body {
        padding: 30px 20px;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ingredient-item {
        padding: 20px;
    }
    
    .ingredient-icon {
        font-size: 32px;
        width: 50px;
    }
    
    .step-item {
        padding: 25px;
        padding-left: 70px;
    }
    
    .step-item::before {
        width: 35px;
        height: 35px;
        font-size: 16px;
        left: 20px;
    }
    
    .step-text {
        font-size: 1em;
    }
    
    .tips-container {
        padding: 25px 20px;
    }
    
    .coming-soon-content {
        padding: 60px 20px;
    }
    
    .coming-soon-icon {
        font-size: 4em;
    }
    
    .coming-soon-content h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .recipe-nav-title {
        display: none; /* Ukryj tytuł na małych ekranach - zostanie tylko przycisk powrotu */
    }
    
    .nav-content {
        justify-content: flex-start; /* Przycisk powrotu po lewej */
    }

    .recipe-detail-title {
        font-size: 1.9em; /* zwiększone z 1.8em */
    }
    
    .recipe-detail-subtitle {
        font-size: 1.1em;
    }
    
    .meta-item {
        padding: 14px 18px; /* zmniejszone z 12px 18px */
        min-width: 110px; /* zwiększone z 100px */
    }
    
    .meta-number {
        font-size: 2em; /* zwiększone z 1.8em */
    }
    
    .meta-label {
        font-size: 0.8em; /* zmniejszone z 0.85em */
    }
    
    .recipe-detail-body {
        padding: 25px 15px;
    }
    
    .recipe-section h3 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .ingredient-item {
        padding: 15px;
        gap: 15px;
    }
    
    .ingredient-icon {
        font-size: 28px;
        width: 45px;
    }
    
    .ingredient-name {
        font-size: 1em;
    }
    
    .ingredient-amount {
        font-size: 0.9em;
    }
    
    .step-item {
        padding: 20px;
        padding-left: 60px;
        margin-bottom: 15px;
    }
    
    .step-item::before {
        width: 30px;
        height: 30px;
        font-size: 14px;
        left: 15px;
    }
    
    .step-text {
        font-size: 0.95em;
    }
    
    .tips-container {
        padding: 20px 15px;
    }
    
    .tips-list li {
        font-size: 0.9em;
        padding-left: 25px;
    }
    
    .tips-list li::before {
        font-size: 16px;
    }
}

/* Animations for better UX */
.ingredient-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.ingredient-item:nth-child(1) { animation-delay: 0.1s; }
.ingredient-item:nth-child(2) { animation-delay: 0.15s; }
.ingredient-item:nth-child(3) { animation-delay: 0.2s; }
.ingredient-item:nth-child(4) { animation-delay: 0.25s; }
.ingredient-item:nth-child(5) { animation-delay: 0.3s; }
.ingredient-item:nth-child(6) { animation-delay: 0.35s; }
.ingredient-item:nth-child(7) { animation-delay: 0.4s; }
.ingredient-item:nth-child(8) { animation-delay: 0.45s; }
.ingredient-item:nth-child(9) { animation-delay: 0.5s; }
.ingredient-item:nth-child(10) { animation-delay: 0.55s; }
.ingredient-item:nth-child(11) { animation-delay: 0.6s; }
.ingredient-item:nth-child(12) { animation-delay: 0.65s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-item {
    animation: fadeInLeft 0.6s ease forwards;
    opacity: 0;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.15s; }
.step-item:nth-child(3) { animation-delay: 0.2s; }
.step-item:nth-child(4) { animation-delay: 0.25s; }
.step-item:nth-child(5) { animation-delay: 0.3s; }
.step-item:nth-child(6) { animation-delay: 0.35s; }
.step-item:nth-child(7) { animation-delay: 0.4s; }
.step-item:nth-child(8) { animation-delay: 0.45s; }
.step-item:nth-child(9) { animation-delay: 0.5s; }
.step-item:nth-child(10) { animation-delay: 0.55s; }
.step-item:nth-child(11) { animation-delay: 0.6s; }
.step-item:nth-child(12) { animation-delay: 0.65s; }
.step-item:nth-child(13) { animation-delay: 0.7s; }
.step-item:nth-child(14) { animation-delay: 0.75s; }
.step-item:nth-child(15) { animation-delay: 0.8s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Green badge for available recipes */
.recipe-available-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.recipe-available-badge::before {
    content: "✓";
    font-size: 16px;
}

/* ===== STYLES FOR TOOLS SECTION - DODAJ DO recipes.css ===== */

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Tool Item Cards */
.tool-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-top: 3px solid #17a2b8;
    min-height: 140px;
    max-height: 140px;
    overflow: hidden;
}

.tool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.tool-icon {
    font-size: 28px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.tool-content {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tool-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1em;
    line-height: 1.2;
}

.tool-size {
    background: #e8f5ff;
    color: #17a2b8;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75em;
    font-weight: 500;
}

.tool-tip {
    color: #5a6c7d;
    line-height: 1.3;
    font-size: 0.85em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 6;
    -webkit-line-clamp: 6; /* Increased from 4 to 6 lines for desktop */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Tools Info Section */
.tools-info {
    background: #e8f5ff;
    border-radius: 16px; /* zmniejszone z 20px */
    padding: 20px; /* zmniejszone z 25px */
    margin-bottom: 25px; /* zmniejszone z 30px */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* zmniejszone */
}

.tools-info h4 {
    color: #2c3e50;
    margin-bottom: 10px; /* zmniejszone z 12px */
    font-size: 1em; /* zmniejszone z 1.1em */
    display: flex;
    align-items: center;
    gap: 8px; /* zmniejszone z 10px */
}

.tools-info p {
    color: #5a6c7d;
    line-height: 1.5; /* zmniejszone z 1.6 */
    margin: 0;
    font-size: 0.95em;
}

/* Animations for tools */
.tool-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

* Coming Soon Header */
.recipe-detail-header.coming-soon {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.tool-item:nth-child(1) { animation-delay: 0.1s; }
.tool-item:nth-child(2) { animation-delay: 0.15s; }
.tool-item:nth-child(3) { animation-delay: 0.2s; }
.tool-item:nth-child(4) { animation-delay: 0.25s; }
.tool-item:nth-child(5) { animation-delay: 0.3s; }
.tool-item:nth-child(6) { animation-delay: 0.35s; }

/* Responsive Design for Tools */

/* Large tablets and iPads */
@media (max-width: 1200px) {
    /* Remove line limit for iPad devices */
    .tool-tip {
        overflow: visible !important;
        display: block !important;
        -webkit-box-orient: unset !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        text-overflow: unset !important;
        white-space: normal !important;
    }
    
    /* Allow tool items to expand on iPads */
    .tool-item {
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
     .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px; /* zmniejszone z 15px */
    }
    
    .tool-item {
        padding: 16px; /* zmniejszone z 20px */
    }
    
    .tool-icon {
        font-size: 28px; /* zmniejszone z 32px */
        width: 40px; /* zmniejszone z 50px */
    }
    
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tools-info {
        padding: 20px;
    }
    
    /* Remove line limit for tablet devices too */
    .tool-tip {
        overflow: visible !important;
        display: block !important;
        -webkit-box-orient: unset !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        text-overflow: unset !important;
        white-space: normal !important;
    }
    
    /* Allow tool items to expand on tablets */
    .tool-item {
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .tool-item {
        padding: 14px; /* zmniejszone z 15px */
        gap: 12px; /* zmniejszone z 15px */
    }
    
    .tool-icon {
        font-size: 24px; /* zmniejszone z 28px */
        width: 36px; /* zmniejszone z 45px */
    }
    
    .tool-name {
        font-size: 1em;
    }
    
    .tool-tip {
        font-size: 0.9em;
        /* Completely remove line clamping on mobile */
        overflow: visible !important;
        display: block !important;
        -webkit-box-orient: unset !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        text-overflow: unset !important;
        white-space: normal !important;
    }
    
    /* Allow tool items to expand on mobile */
    .tool-item {
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 14px; /* zmniejszone z 15px */
        gap: 12px; /* zmniejszone z 15px */
    }
    
    .tools-info {
        padding: 15px;
    }
}

/* Bulion Section Styles */
.bulion-section {
    margin: 25px 0;
}

.bulion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.bulion-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.bulion-title {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.bulion-expandable {
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.bulion-content {
    padding: 15px;
}

.bulion-content h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.bulion-content ul,
.bulion-content ol {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.bulion-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

.bulion-tip {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(78, 205, 196, 0.3);
}

.bulion-tip strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

/* Responsive for Bulion Section */
@media (max-width: 768px) {
    .bulion-toggle {
        padding: 12px 16px;
    }
    
    .bulion-title {
        font-size: 1.1em;
    }
    
    .bulion-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .bulion-toggle {
        padding: 10px 14px;
    }
    
    .bulion-title {
        font-size: 1em;
    }
    
    .bulion-content {
        padding: 14px;
    }
    
    .bulion-content h4 {
        font-size: 1em;
    }
}