/* 
 * Widgets Styles - Victor's Logistics Theme
 * Estilos específicos para widgets customizados
 */

/* ==========================================================================
   Widget Base Styles
   ========================================================================== */

.widget {
    margin-bottom: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(135deg, #2E86C1 0%, #1B4F72 100%);
    color: white;
    padding: 12px 15px;
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-content {
    padding: 15px;
}

/* ==========================================================================
   Newsletter Widget
   ========================================================================== */

.newsletter-widget .widget-content p {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #2E86C1;
}

.newsletter-form button {
    background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.newsletter-form button:active {
    transform: translateY(0);
}

.newsletter-message {
    margin-top: 10px;
    font-size: 11px;
}

.newsletter-message .success {
    color: #27ae60;
    background: #d5f4e6;
    padding: 8px 10px;
    border-radius: 3px;
    margin: 0;
}

.newsletter-message .error {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 8px 10px;
    border-radius: 3px;
    margin: 0;
}

/* ==========================================================================
   Social Media Widget
   ========================================================================== */

.social-widget .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
}

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-facebook {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMjAiIGZpbGw9IiMzQjU5OTgiLz4KPHN2ZyB4PSI4IiB5PSI4IiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0id2hpdGUiPgo8cGF0aCBkPSJNMTYuNSAxMkgxNFYyMkgxMFYxMkg4VjlIMTBWN0MxMCA1LjM0MzE1IDExLjM0MzEgNCAxMyA0SDE2VjhIMTQuNUMxNC4yMjM5IDggMTQgOC4yMjM4NiAxNCA4LjVWOUgxNi41VjEyWiIvPgo8L3N2Zz4KPC9zdmc+');
}

.social-youtube {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMjAiIGZpbGw9IiNGRjAwMDAiLz4KPHN2ZyB4PSI4IiB5PSI4IiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0id2hpdGUiPgo8cGF0aCBkPSJNMjEuNTgyIDkuNDI4QzIxLjQwNyA4Ljc2NyAyMC44OTYgOC4yNTYgMjAuMjM1IDguMDgxQzE4Ljk5MyA3Ljc1IDE3IDcuNzUgMTcgNy43NVMxNS4wMDcgNy43NSAxMy43NjUgOC4wODFDMTMuMTA0IDguMjU2IDEyLjU5MyA4Ljc2NyAxMi40MTggOS40MjhDMTIuMDg3IDEwLjY3IDEyLjA4NyAxMy4yNSAxMi4wODcgMTMuMjVTMTIuMDg3IDE1LjgzIDEyLjQxOCAxNy4wNzJDMTIuNTkzIDE3LjczMyAxMy4xMDQgMTguMjQ0IDEzLjc2NSAxOC40MTRDMTU4IDcgMTguNzUgMTcgMTguNzVTMTkuMDA3IDE4Ljc1IDIwLjIzNSAxOC40MTRDMJBIQ4cAwBIRJqIyCzmxCAQQCCYCCCC5ey0wKGh4SU1jLnJmcT09IgpoaBBBok5hs');
}

.social-twitter {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMjAiIGZpbGw9IiMxREE5RjIiLz4KPHN2ZyB4PSI4IiB5PSI4IiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0id2hpdGUiPgo8cGF0aCBkPSJNOC4yOSAxOC45NTFDMTUuODM3IDE4Ljk1MSAyMCAzMS44MTMgMjAgNkMyMCA1LjU5IDIwIDQuNjY5IDxE5LTdMipTIoyN1M');
}

/* ==========================================================================
   News Widget
   ========================================================================== */

.news-widget .news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-widget .news-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-widget .news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-widget .news-title {
    margin-bottom: 8px;
}

.news-widget .news-title a {
    font-size: 12px;
    font-weight: bold;
    color: #2E86C1;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.news-widget .news-title a:hover {
    color: #DC3545;
}

.news-widget .news-excerpt {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 5px;
}

.news-widget .news-date {
    font-size: 10px;
    color: #999;
    font-style: italic;
}

.news-widget .news-pagination {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.news-widget .news-pagination a {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: #f8f9fa;
    color: #666;
    margin: 0 2px;
    border-radius: 3px;
    font-size: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-widget .news-pagination a:hover,
.news-widget .news-pagination a.current {
    background: #2E86C1;
    color: white;
    transform: scale(1.1);
}

/* ==========================================================================
   Currency Widgets
   ========================================================================== */

.currency-widget {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.currency-header {
    background: linear-gradient(135deg, #2E86C1 0%, #1B4F72 100%);
    color: white;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.3px;
}

.currency-content {
    padding: 15px;
}

/* Currency Rates */
.currency-rates {
    margin-bottom: 15px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
}

.rate-item:last-child {
    border-bottom: none;
}

.currency-pair {
    font-weight: bold;
    color: #2E86C1;
}

.rate-value {
    color: #495057;
    font-family: 'Courier New', monospace;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

.powered-by {
    font-size: 9px;
    color: #6c757d;
    text-align: center;
    margin-top: 10px;
}

.powered-by a {
    color: #2E86C1;
    text-decoration: none;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* Currency Converter */
.converter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.converter-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.converter-form select,
.converter-form input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 11px;
    font-family: Arial, sans-serif;
}

.converter-form select {
    background: white;
}

.converter-form input[readonly] {
    background: #e9ecef;
    color: #6c757d;
}

.converter-arrow {
    text-align: center;
    font-size: 16px;
    color: #2E86C1;
    font-weight: bold;
    margin: 5px 0;
}

.converter-form button {
    background: linear-gradient(135deg, #2E86C1 0%, #1B4F72 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.converter-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(46, 134, 193, 0.4);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 767px) {
    .widget {
        margin-bottom: 20px;
    }
    
    .widget-content {
        padding: 12px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    .converter-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .converter-form select,
    .converter-form input {
        font-size: 12px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .widget-content {
        padding: 10px;
    }
    
    .widget-title {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        font-size: 13px;
        padding: 12px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
    }
}
