/* PDF Merger Tool Specific Styles */

/* Image cards grid layout */
.image-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* PDF card styling */
.image-card {
    width: 100%;
    padding: 20px 15px;
    border-radius: 20px;
    background-color: #FCECDD;
    border: 1px solid #FFDDC2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    cursor: move;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-card.dragging {
    opacity: 0.7;
    transform: scale(1.05);
    z-index: 10;
}

.pdf-card-icon {
    font-size: 40px;
    color: #FF7A00;
    margin-bottom: 10px;
}

.pdf-card-name {
    font-weight: 700;
    font-size: 15px;
    color: #000;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: left;
}

.pdf-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #666666;
    align-items: flex-start;
    align-self: flex-start;
    width: 100%;
}

.pdf-card-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.pdf-card-details i {
    color: #FF7A00;
    font-size: 14px;
    width: 16px;
}

.image-card-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 12px;
    color: #ff4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.image-card-remove:hover {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

/* Responsive grid layouts */
@media (max-width: 800px) {
    .image-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .image-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .image-cards-container {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb styles */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    font-size: 14px;
    flex-wrap: wrap;
    background-color: #FCECDD;
    padding: 8px 20px;
    border-radius: 30px;
}

.breadcrumb a, .breadcrumb span {
    background-color: transparent;
    padding: 0;
    color: var(--primary-orange);
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb a:hover {
    background-color: transparent;
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 700;
}

.breadcrumb .fa-angle-right {
    display: inline-block !important;
    color: var(--primary-orange);
    opacity: 0.6;
}

/* Feature Card Redesign */
.tool-features .info-card {
    background-color: #fff;
    border-radius: 30px;
    padding: 20px;
    text-align: center;
    transition: 0.3s ease-in-out;
    border: 1px solid #f0f0f0;
}

.tool-features .info-card:hover {
    transform: scale(1.05);
    border-color: #FF7A00;
    background-color: #FFF5EB;
}

.tool-features .info-card .info-icon {
    font-size: 28px;
    color: #FF7A00;
    margin-bottom: 15px;
    background-color: #FCECDD;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    display: inline-block;
    transition: 0.3s ease-in-out;
}

.tool-features .info-card:hover .info-icon {
    background-color: #FF7A00;
    color: white;
}

.tool-features .info-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.tool-features .info-card:hover h3 {
    color: #333;
}

.tool-features .info-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.tool-features .info-card:hover p {
    color: #333;
}

/* Upload area styles */
.upload-area .upload-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #fff;
    color: #FF7A00;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 28px;
    box-shadow: none;
}

.upload-area .upload-text h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #FF7A00;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
}

/* How-To-Use Section Styles */
.how-to-use {
    padding: 60px 0;
    background-color: #fff;
    position: relative;
}

/* Explicitly remove the vertical line artifact */
.how-to-use::before, .how-to-use::after {
    display: none !important;
    content: none !important;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background-color: #fff;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.step-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-orange);
    background-color: var(--light-orange);
}

.step-card-icon {
    font-size: 32px;
    color: var(--primary-orange);
    margin-bottom: 20px;
    background-color: var(--light-orange);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
}

.step-card:hover .step-card-icon {
    background-color: var(--primary-orange);
    color: white;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

.step-card:hover h3,
.step-card:hover p {
    color: #333;
}

/* Related Tool Cards */
.related-tool-card {
    background-color: #FCECDD;
    border-radius: 20px;
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: scale(1.05);
    background-color: #f57c00;
    border-color: transparent;
}

.related-tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #FF7A00;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 20px;
    transition: 0.3s ease-in-out;
}

.related-tool-card:hover .related-tool-icon {
    background-color: white;
    color: #FF7A00;
}

.related-tool-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    transition: 0.3s ease-in-out;
}

.related-tool-card:hover h3 {
    color: white;
}

.related-tool-card p {
    font-size: 13px;
    color: #666666;
    margin-top: 0;
    transition: 0.3s ease-in-out;
}

.related-tool-card:hover p {
    color: white;
}

/* Responsive media queries for the related tools grid */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* Upload area */
.upload-area {
    position: relative;
    height: 150px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px dashed #FF7A00;
    border-radius: 20px;
    background-color: #FFF5EB;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.upload-area .upload-text h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #FF7A00;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles for the bar after files are selected */
.upload-area.files-selected {
    height: 50px;
    border-radius: 100px;
    flex-direction: row;
    padding: 10px 20px;
}

.upload-area.files-selected .upload-icon {
    display: none;
}

.upload-area.files-selected .upload-text h3 {
    color: #FF7A00;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area .browse-text {
    color: #FF7A00;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.upload-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.upload-icon {
    font-size: 40px;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

/* Download section styles */
.download-section {
    background-color: #FFF5EB;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    margin: 20px auto;
    transition: all 0.3s ease;
    box-shadow: none;
}

.success-message {
    margin-bottom: 20px;
}

.success-icon {
    font-size: 30px;
    color: white;
    margin-bottom: 25px;
    background-color: #FF7A00;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    display: inline-block;
}

.download-section h3 {
    font-size: 28px;
    color: #000;
    margin-bottom: 10px;
    font-weight: 700;
}

.download-section p {
    color: #555;
    margin-bottom: 20px;
    font-size: 16px;
}

.file-info {
    background-color: white;
    border-radius: 15px;
    padding: 20px 25px;
    display: inline-block;
    margin: 25px 0;
    text-align: left;
    width: 80%;
    box-shadow: none;
}

/* Download buttons */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.download-btn, .new-conversion-btn {
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.download-btn {
    background-color: #FF7A00;
    color: white;
}

.download-btn:hover {
    background-color: #ff6a00;
    transform: translateY(-2px);
}

.new-conversion-btn {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

.new-conversion-btn:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
}

/* Tool Buttons */
.tool-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.reset-btn, .convert-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.reset-btn {
    background-color: #f0f0f0;
    color: #333;
}

.reset-btn:hover {
    background-color: #e0e0e0;
}

.convert-btn {
    background-color: #FF7A00;
    color: white;
}

.convert-btn:hover {
    background-color: #ff6a00;
    transform: translateY(-2px);
}

/* Feature card hover effects */
.feature-card:hover {
    transform: scale(1.05);
    background-color: white;
    border: 2px solid #e9e9e9;
    cursor: pointer;
}

.feature-card:hover p {
    color: var(--text-light);
}

.feature-card:hover h3 {
    color: var(--text-dark);
    font-weight: 600;
}

/* Step card hover effects */
.step-card:hover {
    transform: scale(1.05);
    background-color: white;
    border: 2px solid #e9e9e9;
    cursor: pointer;
}

.step-card:hover p {
    color: var(--text-light);
}

.step-card:hover i {
    color: var(--primary-orange);
}

.step-card:hover h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.step-card:hover .step-number {
    background-color: var(--primary-orange);
    color: white;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .timeline-connector {
        display: none;
    }

    .step-card {
        padding: 15px !important;
    }

    .step-card i {
        font-size: 28px !important;
    }

    .step-number {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .step-card h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    .step-card p {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
}
