/* Tools Page Styles */

/* Hero Section */
.tools-hero {
    background: linear-gradient(135deg, #3498db, #673ab7);
    color: white;
    padding: 4rem 0;
    margin-bottom: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.tools-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.tools-illustration i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.tools-illustration i.fa-cog {
    position: absolute;
    font-size: 3rem;
}

.tools-illustration i.spin-clockwise {
    animation: spin 8s linear infinite;
    top: 30px;
    right: 60px;
}

.tools-illustration i.spin-counter-clockwise {
    animation: spin-reverse 6s linear infinite;
    bottom: 30px;
    left: 60px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Intro Section */
.tools-intro {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    margin-bottom: 1.5rem;
}

/* Prompt Generator */
.prompt-generator {
    padding: 2rem 0 4rem 0;
}

.generator-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

/* Generator Options */
.generator-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.option-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.option-card h3 {
    background-color: #f8f9fa;
    margin: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eaeaea;
    font-size: 1.1rem;
}

.option-content {
    padding: 1.5rem;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin-right: 0.75rem;
}

.radio-label {
    font-size: 1rem;
}

/* Select Dropdown */
.select-container {
    position: relative;
}

.select-container select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
}

.select-container::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Sliders */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.slider-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-item label {
    font-weight: 500;
}

.slider-item input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
}

.slider-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

.slider-item input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 0.75rem;
}

.checkbox-label {
    font-size: 1rem;
}

/* Generate Button */
#generate-prompt {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Generated Prompt */
.generated-prompt {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.prompt-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.prompt-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prompt-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.prompt-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-small:hover {
    background-color: #f0f0f0;
}

.prompt-content {
    padding: 1.5rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.placeholder-text {
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 3rem;
}

.prompt-section {
    margin-bottom: 2rem;
}

.prompt-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0.5rem;
}

.prompt-section ul,
.prompt-section ol {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.prompt-section li {
    margin-bottom: 0.5rem;
}

.code-block {
    background-color: #282c34;
    border-radius: 6px;
    margin: 1rem 0;
    overflow: hidden;
}

.code-block pre {
    margin: 0;
    padding: 1rem;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* Sponsored Resources */
.sponsored-resources {
    background-color: #fff8e1;
    border-radius: 8px;
    overflow: hidden;
}

.resources-header {
    background-color: #fff3e0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ffe0b2;
}

.resources-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #e65100;
}

#recommended-resources {
    padding: 1.5rem;
}

.recommended-resource {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recommended-resource:last-child {
    margin-bottom: 0;
}

.resource-icon {
    width: 48px;
    height: 48px;
    background-color: #fff3e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8f00;
    font-size: 1.25rem;
}

.resource-content {
    flex: 1;
}

.resource-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.resource-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #555;
}

.resource-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.resource-link i {
    margin-left: 0.35rem;
}

.resource-link:hover {
    text-decoration: underline;
}

/* Example Prompts Section */
.prompt-examples {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.example-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.example-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.example-icon {
    width: 48px;
    height: 48px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d47a1;
    font-size: 1.25rem;
}

.example-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.example-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.example-content p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #333;
    line-height: 1.5;
}

.example-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.example-category,
.example-level {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.example-category {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.example-level {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.example-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
}

/* Premium Examples */
.example-card.premium {
    border: 2px solid #ffd700;
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #ffd700;
    color: #333;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.btn-premium {
    background-color: #ffd700;
    border: none;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-premium:hover {
    background-color: #f0c800;
}

/* Tools Resources Section */
.tools-resources {
    padding: 4rem 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.resource-card.sponsored {
    border: 1px solid #ffe0b2;
}

/* Common sponsored content styling */
.sponsored {
    position: relative;
}

.sponsored-tag {
    background-color: #fff8e1;
    color: #ff8f00;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
    margin-left: 0.5rem;
    font-weight: normal;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .generator-grid {
        grid-template-columns: 1fr;
    }
    
    .examples-grid,
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .examples-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .example-header {
        flex-direction: column;
        text-align: center;
    }
    
    .resource-card {
        align-items: center;
        text-align: center;
    }
}
