/* Tool Page Common Styles */
.tool-page {
    padding-top: 0;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #667eea;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator {
    opacity: 0.5;
}

/* Tool Content */
.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

/* Social Media Post Creator Specific Styles */
.sm-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.sm-post-header {
    text-align: center;
    color: white;
    padding: 40px 30px;
}

.sm-post-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sm-post-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

.sm-controls {
    background: white;
    padding: 30px;
    margin: 0 20px 20px 20px;
    border-radius: 15px;
}

.sm-platform-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 12px;
}

.sm-platform-tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: #666;
    transition: all 0.3s ease;
}

.sm-platform-tab:hover {
    color: #f5576c;
    background: rgba(245, 87, 108, 0.1);
}

.sm-platform-tab.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.sm-control-group {
    margin-bottom: 20px;
}

.sm-control-group:last-child {
    margin-bottom: 0;
}

.sm-control-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.sm-control-group select,
.sm-control-group input[type="text"],
.sm-control-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sm-control-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

.sm-control-group input[type="color"] {
    width: 100%;
    height: 55px;
    padding: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sm-control-group input[type="range"] {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.sm-control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
}

.sm-control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
}

.sm-control-group select:focus,
.sm-control-group input:focus,
.sm-control-group textarea:focus {
    outline: none;
    border-color: #f5576c;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1);
}

.sm-color-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.sm-btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sm-btn-update {
    width: 100%;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.sm-btn-update:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sm-canvas-wrapper {
    background: white;
    padding: 30px;
    margin: 0 20px 20px 20px;
    border-radius: 15px;
    text-align: center;
}

.sm-canvas-container {
    display: inline-block;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

#smCanvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.canvas-dimensions {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.sm-buttons {
    display: flex;
    gap: 15px;
    padding: 0 20px 30px 20px;
}

.sm-btn-primary {
    flex: 1;
    background: white;
    color: #f5576c;
    border: 2px solid white;
}

.sm-btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.sm-btn-secondary {
    flex: 1;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.sm-btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.sm-info-box {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    margin: 0 20px 30px 20px;
    border-radius: 15px;
    border-left: 5px solid white;
}

.sm-info-box h4 {
    color: #f5576c;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.sm-info-box ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.sm-info-box li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.sm-info-box li:last-child {
    margin-bottom: 0;
}

.sm-info-box strong {
    color: #333;
}

/* SEO Content Section */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #333;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article ul,
.content-article ol {
    margin-bottom: 25px;
    padding-left: 30px;
    color: #666;
}

.content-article li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .tool-meta {
        font-size: 14px;
    }

    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }

    .sm-post-container {
        margin: 20px 15px;
        border-radius: 20px;
    }

    .sm-post-header {
        padding: 30px 20px;
    }

    .sm-post-header h2 {
        font-size: 28px;
    }

    .sm-controls {
        padding: 20px;
        margin: 0 15px 15px 15px;
    }

    .sm-platform-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .sm-platform-tab {
        width: 100%;
        padding: 12px;
    }

    .sm-color-row {
        grid-template-columns: 1fr;
    }

    .sm-canvas-wrapper {
        padding: 20px;
        margin: 0 15px 15px 15px;
    }

    .sm-buttons {
        flex-direction: column;
        padding: 0 15px 20px 15px;
    }

    .sm-btn {
        width: 100%;
    }

    .sm-info-box {
        margin: 0 15px 20px 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .sm-post-header h2 {
        font-size: 24px;
    }

    .sm-post-header p {
        font-size: 14px;
    }

    .sm-control-group label {
        font-size: 13px;
    }

    .sm-control-group input,
    .sm-control-group select,
    .sm-control-group textarea {
        font-size: 14px;
        padding: 12px 14px;
    }

    .canvas-dimensions {
        font-size: 12px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sm-canvas-container {
    animation: fadeIn 0.4s ease;
}

/* Print Styles */
@media print {
    .sm-controls,
    .sm-buttons,
    .sm-info-box {
        display: none;
    }

    .sm-canvas-wrapper {
        box-shadow: none;
    }
}